diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-06-15 16:07:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-06-15 16:07:09 +0000 |
commit | 171557a1c1f861e4e623d2c7f7afe7c917ac5803 (patch) | |
tree | f61c859fa79bcf8d22b6964b875bf2f835de0fa7 /package/base-files/files/sbin/ifdown | |
parent | 040caceff305b7d30e4de03f1307562b6cd058fc (diff) | |
download | upstream-171557a1c1f861e4e623d2c7f7afe7c917ac5803.tar.gz upstream-171557a1c1f861e4e623d2c7f7afe7c917ac5803.tar.bz2 upstream-171557a1c1f861e4e623d2c7f7afe7c917ac5803.zip |
more fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7639 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/sbin/ifdown')
-rwxr-xr-x | package/base-files/files/sbin/ifdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 5a98003b1d..8ec568ff6b 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -20,7 +20,7 @@ config_get proto "$cfg" proto [ -z "$proto" ] && { echo "interface not found."; exit; } config_get iface "$cfg" device -[ "$proto" = "static" ] && { +[ "static" = "$proto" ] && { env -i ACTION="ifdown" INTERFACE="$cfg" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" & } @@ -58,5 +58,5 @@ for dev in $ifname $device; do done config_get iftype "$cfg" type -[ "$iftype" = "bridge" ] && brctl delbr "$ifname" >/dev/null 2>/dev/null +[ "bridge" = "$iftype" ] && brctl delbr "$ifname" >/dev/null 2>/dev/null |