aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-15 15:27:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-15 15:27:34 +0000
commit2d072c599779ce1b76df480b9da7cd3c3e65425c (patch)
tree3be3fcf509c5ada3fbc27932a94ad107d2a1abfc /package/base-files/default/etc
parent6c27c88271de6c4e3eda940c766c2768d4fb88d3 (diff)
downloadupstream-2d072c599779ce1b76df480b9da7cd3c3e65425c.tar.gz
upstream-2d072c599779ce1b76df480b9da7cd3c3e65425c.tar.bz2
upstream-2d072c599779ce1b76df480b9da7cd3c3e65425c.zip
implement simple device autodetection for wifi drivers
SVN-Revision: 5113
Diffstat (limited to 'package/base-files/default/etc')
-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 be045045e7..c7720369fd 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
}