diff options
author | John Crispin <blogic@openwrt.org> | 2007-07-24 22:10:10 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2007-07-24 22:10:10 +0000 |
commit | b9a57974fadd2704819f85f02564e81c2f568fa3 (patch) | |
tree | a80b1294370463688af69c15bcda76e232ff7124 /package/base-files/files/etc/init.d/network | |
parent | aa66a101b822378ead3e2a18c0326d6c0a82bf01 (diff) | |
download | master-187ad058-b9a57974fadd2704819f85f02564e81c2f568fa3.tar.gz master-187ad058-b9a57974fadd2704819f85f02564e81c2f568fa3.tar.bz2 master-187ad058-b9a57974fadd2704819f85f02564e81c2f568fa3.zip |
wireless config gets regenerated not only when it does not exist, buit also if it is 0 len
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8149 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d/network')
-rwxr-xr-x | package/base-files/files/etc/init.d/network | 2 |
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 } |