Revert a bit the previous changeset, add DEVICE to ip-up/down
authorFlorian Fainelli <florian@openwrt.org>
Mon, 27 Nov 2006 08:14:39 +0000 (08:14 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 27 Nov 2006 08:14:39 +0000 (08:14 +0000)
SVN-Revision: 5662

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

index 334bcb885afdd68e4f4a2ebd58acc2b9277cd6f9..a0439ec83229afeff2f5689110e99c7f9421a889 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
+[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp DEVICE=$1 /sbin/hotplug "iface"
 
 [ -d /etc/ppp/ip-down.d ] && {
        for SCRIPT in /etc/ppp/ip-down.d/*
index c52d280be3da6193fff616800793289deae7046a..76aa32664ece92733a06cec557f6f07223bce02d 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-[ -z "$1" ] || env -i ACTION="ifup" INTERFACE="$1" PROTO=ppp /sbin/hotplug "iface"
+[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp DEVICE=$1 /sbin/hotplug "iface"
 
 [ -d /etc/ppp/ip-up.d ] && {
        for SCRIPT in /etc/ppp/ip-up.d/*