aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-22 18:46:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-22 18:46:57 +0000
commit2ab412c4f2e8123a5d4851c10ab57e696aaed04e (patch)
tree8335921f0276b5997a726eb7b1bebcc31adb07a5 /package/base-files
parent2fd3ce45f4da285abee61b20cdd3ffac1f118a5c (diff)
downloadmaster-187ad058-2ab412c4f2e8123a5d4851c10ab57e696aaed04e.tar.gz
master-187ad058-2ab412c4f2e8123a5d4851c10ab57e696aaed04e.tar.bz2
master-187ad058-2ab412c4f2e8123a5d4851c10ab57e696aaed04e.zip
fix an error message
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8109 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/sbin/wifi2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index 0d26468ba2..51e10af103 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -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" "|"