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 eab00118ad46242ee6c3e8289c12b12ab6252fa9..2a116664e4c58f8b69faf847d5c6cef2e9cdf6c1 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
 }