summaryrefslogtreecommitdiff
path: root/package/base-files/default/etc/init.d/S40network
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/default/etc/init.d/S40network')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S40network4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/default/etc/init.d/S40network b/package/base-files/default/etc/init.d/S40network
index be04504..c772036 100755
--- a/package/base-files/default/etc/init.d/S40network
+++ b/package/base-files/default/etc/init.d/S40network
@@ -6,6 +6,8 @@ start() {
include /lib/network
setup_switch
- /sbin/wifi
+ [ -e /etc/config/wireless ] || \
+ /sbin/wifi detect > /etc/config/wireless
+ /sbin/wifi up
}