aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-07-24 22:10:10 +0000
committerJohn Crispin <john@openwrt.org>2007-07-24 22:10:10 +0000
commit206998371f39b38bab94af97216eed3fea98ce32 (patch)
tree8a3b84712dc2a0b88b3d25a7fecb025b473da401 /package
parent848075e475e7ba6494bafdd302d5177079bf04ca (diff)
downloadupstream-206998371f39b38bab94af97216eed3fea98ce32.tar.gz
upstream-206998371f39b38bab94af97216eed3fea98ce32.tar.bz2
upstream-206998371f39b38bab94af97216eed3fea98ce32.zip
wireless config gets regenerated not only when it does not exist, buit also if it is 0 len
SVN-Revision: 8149
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/etc/init.d/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network
index eab00118ad..2a116664e4 100755
--- a/package/base-files/files/etc/init.d/network
+++ b/package/base-files/files/etc/init.d/network
@@ -9,7 +9,7 @@ boot() {
include /lib/network
setup_switch
- [ -e /etc/config/wireless ] || \
+ [ -s /etc/config/wireless ] || \
/sbin/wifi detect > /etc/config/wireless
/sbin/wifi up
}