fix an error message
[openwrt.git] / 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.027628 seconds and 4 git commands to generate.