set the DEVICE variable in hotplug events from ppp interfaces
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 14:12:22 +0000 (14:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Mar 2007 14:12:22 +0000 (14:12 +0000)
SVN-Revision: 6667

package/ppp/files/etc/ppp/ip-down
package/ppp/files/etc/ppp/ip-up

index 6bff00ca035ddf224e26feb994ac7152d4d14673..814948e0bda4a53600b9b417eb10e32c5de5a431 100755 (executable)
@@ -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/*
index 53a91343a510b51faa09822f04cc613ec3e71e51..22b65e8a09de9f13fe3259ba3a968c813674e234 100755 (executable)
@@ -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/*