base-files: load modules early, run wifi detect afterwards and only then process...
[openwrt.git] / package / base-files-network / files / etc / init.d / network
index fc51221..ad73e60 100755 (executable)
@@ -10,11 +10,6 @@ boot() {
        include /lib/network
        setup_switch
 
-       /sbin/wifi detect > /tmp/wireless.tmp
-       [ -s /tmp/wireless.tmp ] && {
-               cat /tmp/wireless.tmp >> /etc/config/wireless
-       }
-       rm -f /tmp/wireless.tmp
        grep -qs config /etc/config/wireless && {
                /sbin/wifi up
        }