From e6477dde693f8ea0fc7b616bae18598d182b2de4 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 15 Jun 2007 16:07:09 +0000 Subject: more fixes git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7639 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/ifdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/base-files/files/sbin/ifdown') diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 5a98003b1..8ec568ff6 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 -- cgit v1.2.3