fix an error message
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 22 Jul 2007 18:46:57 +0000 (18:46 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 22 Jul 2007 18:46:57 +0000 (18:46 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8109 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/sbin/wifi

index 0d26468..51e10af 100755 (executable)
@@ -82,6 +82,8 @@ set_wifi_up() {
 set_wifi_down() {
        local cfg="$1"
        local vifs vif vifstr
+       [ -f /var/state/wireless ] || return
+
        config_get vifs "$cfg" vifs
        for vif in $vifs; do
                append vifstr "$vif" "|"
This page took 0.024939 seconds and 4 git commands to generate.