summaryrefslogtreecommitdiff
path: root/package/ppp/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-24 14:12:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-24 14:12:22 +0000
commit573c36539ec92e95d7528e53d5042fce1f5aaa3f (patch)
tree61463f50d37ffa6fff6a18f2dc29be1228503d9b /package/ppp/files
parent7f0dd3fa4549cbc4f74407b5fe93a1604f6219b8 (diff)
downloadmtk-20170518-573c36539ec92e95d7528e53d5042fce1f5aaa3f.zip
mtk-20170518-573c36539ec92e95d7528e53d5042fce1f5aaa3f.tar.gz
mtk-20170518-573c36539ec92e95d7528e53d5042fce1f5aaa3f.tar.bz2
set the DEVICE variable in hotplug events from ppp interfaces
SVN-Revision: 6667
Diffstat (limited to 'package/ppp/files')
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-down2
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-up2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/ppp/files/etc/ppp/ip-down b/package/ppp/files/etc/ppp/ip-down
index 6bff00c..814948e 100755
--- a/package/ppp/files/etc/ppp/ip-down
+++ b/package/ppp/files/etc/ppp/ip-down
@@ -1,5 +1,5 @@
#!/bin/sh
-[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug-call "iface"
+[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" DEVICE="$1" PROTO=ppp /sbin/hotplug-call "iface"
[ -d /etc/ppp/ip-down.d ] && {
for SCRIPT in /etc/ppp/ip-down.d/*
diff --git a/package/ppp/files/etc/ppp/ip-up b/package/ppp/files/etc/ppp/ip-up
index 53a9134..22b65e8 100755
--- a/package/ppp/files/etc/ppp/ip-up
+++ b/package/ppp/files/etc/ppp/ip-up
@@ -1,5 +1,5 @@
#!/bin/sh
-[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp /sbin/hotplug-call "iface"
+[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" DEVICE="$1" PROTO=ppp /sbin/hotplug-call "iface"
[ -d /etc/ppp/ip-up.d ] && {
for SCRIPT in /etc/ppp/ip-up.d/*