aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/ifdown
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-15 16:07:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-15 16:07:09 +0000
commit90d54c0faaaaf14edad59185d6066c5b32273dcb (patch)
treea7429f41f482afebd0ac8c04d417ff026e2bbbfd /package/base-files/files/sbin/ifdown
parent5e6f8739be1b3de38ed7ad1c7dc80bc1f4c4bf31 (diff)
downloadupstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.tar.gz
upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.tar.bz2
upstream-90d54c0faaaaf14edad59185d6066c5b32273dcb.zip
more fixes
SVN-Revision: 7639
Diffstat (limited to 'package/base-files/files/sbin/ifdown')
-rwxr-xr-xpackage/base-files/files/sbin/ifdown4
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