fix ifdown hotplug event (#1576)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Apr 2007 07:23:28 +0000 (07:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Apr 2007 07:23:28 +0000 (07:23 +0000)
SVN-Revision: 6950

package/base-files/files/sbin/ifdown

index 8c36a25..5a98003 100755 (executable)
@@ -21,7 +21,7 @@ config_get proto "$cfg" proto
 
 config_get iface "$cfg" device
 [ "$proto" = "static" ] && {
-       env -i ACTION="ifdown" INTERFACE="$config" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
+       env -i ACTION="ifdown" INTERFACE="$cfg" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
 }
 
 # call interface stop handler