diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 14:12:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 14:12:22 +0000 |
commit | 0342135981669a3952ff32da255f982648d60044 (patch) | |
tree | a1b73a15d0455a7f85c124eda57b3d811ad7657f /package/ppp/files/etc | |
parent | d8e5772f33d0d8a3290a002f57781e91580c2512 (diff) | |
download | master-187ad058-0342135981669a3952ff32da255f982648d60044.tar.gz master-187ad058-0342135981669a3952ff32da255f982648d60044.tar.bz2 master-187ad058-0342135981669a3952ff32da255f982648d60044.zip |
set the DEVICE variable in hotplug events from ppp interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6667 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files/etc')
-rwxr-xr-x | package/ppp/files/etc/ppp/ip-down | 2 | ||||
-rwxr-xr-x | package/ppp/files/etc/ppp/ip-up | 2 |
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 6bff00ca03..814948e0bd 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 53a91343a5..22b65e8a09 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/* |