aboutsummaryrefslogtreecommitdiffstats
path: root/package
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
commit600d29f61e778d0a29a460d85726a7b1c0fb89e0 (patch)
treed139d056bb677af97ec23165f3c459064f7b82b3 /package
parentb13426e21b729e62de0f9c7cd8dd0e0c0bc900d6 (diff)
downloadupstream-600d29f61e778d0a29a460d85726a7b1c0fb89e0.tar.gz
upstream-600d29f61e778d0a29a460d85726a7b1c0fb89e0.tar.bz2
upstream-600d29f61e778d0a29a460d85726a7b1c0fb89e0.zip
fix an error message
SVN-Revision: 8109
Diffstat (limited to 'package')
-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" "|"