wireless config gets regenerated not only when it does not exist, buit also if it...
authorJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2007 22:10:10 +0000 (22:10 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2007 22:10:10 +0000 (22:10 +0000)
SVN-Revision: 8149

package/base-files/files/etc/init.d/network

index eab0011..2a11666 100755 (executable)
@@ -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
 }