diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-06-15 16:07:09 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-06-15 16:07:09 +0000 |
commit | e6477dde693f8ea0fc7b616bae18598d182b2de4 (patch) | |
tree | f61c859fa79bcf8d22b6964b875bf2f835de0fa7 /package/base-files/files/sbin | |
parent | dc98b646744a8983e57d926a863777a322ebe2ba (diff) |
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')
-rwxr-xr-x | package/base-files/files/sbin/hotplug-call | 2 | ||||
-rwxr-xr-x | package/base-files/files/sbin/ifdown | 4 | ||||
-rwxr-xr-x | package/base-files/files/sbin/wifi | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index 607ee2e9db..57011d1523 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -5,7 +5,7 @@ export HOTPLUG_TYPE="$1" # bypass the normal hotplug path for firmware loading # would otherwise cause problems with drivers like bcm43xx -[ "$HOTPLUG_TYPE" = "firmware" -a "$ACTION" = "add" ] && { +[ "firmware" = "$HOTPLUG_TYPE" -a "add" = "$ACTION" ] && { [ -f "/lib/firmware/$FIRMWARE" ] && { echo 1 > "/sys$DEVPATH/loading" cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data" 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 diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 6e8e418458..2ca5d22cb8 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -38,7 +38,7 @@ bridge_interface() {( wifi_updown() { for device in ${2:-$DEVICES}; do ( config_get disabled "$device" disabled - [ "$disabled" == "1" ] && { + [ 1 == "$disabled" ] && { echo "'$device' is disabled" set disable } |