base-files, mac80211, broadcom-wl: wifi detection and configuration
[openwrt/staging/ldir.git] / package / base-files / files / etc / init.d / boot
index 03b0fa04199091c12d30280768e4cbab550e6770..31f245ffc759b10ecda46d87ca70a26bab8b5a2a 100755 (executable)
@@ -38,10 +38,10 @@ boot() {
 
        /sbin/kmodloader
 
-       # allow wifi modules time to settle
-       sleep 1
-
-       /sbin/wifi detect
+       [ ! -f /etc/config/wireless ] && {
+               # compat for brcm47xx and mvebu
+               sleep 1
+       }
 
        /bin/config_generate
        uci_apply_defaults