fix an error message
authorFelix Fietkau <nbd@openwrt.org>
Sun, 22 Jul 2007 18:46:57 +0000 (18:46 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 22 Jul 2007 18:46:57 +0000 (18:46 +0000)
SVN-Revision: 8109

package/base-files/files/sbin/wifi

index 0d26468ba2f037bb604d0361915204360e332af8..51e10af103639dc0ed29c95b9f89003ef84ef61c 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" "|"