summaryrefslogtreecommitdiff
path: root/package/base-files/files
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/base-files/files
parent848075e475e7ba6494bafdd302d5177079bf04ca (diff)
downloadmtk-20170518-206998371f39b38bab94af97216eed3fea98ce32.zip
mtk-20170518-206998371f39b38bab94af97216eed3fea98ce32.tar.gz
mtk-20170518-206998371f39b38bab94af97216eed3fea98ce32.tar.bz2
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/base-files/files')
-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 eab0011..2a11666 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
}