summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-15 00:44:15 +0000
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-15 00:44:15 +0000
commit898495ff4119ba55eafec7cde97d4d6def209a71 (patch)
tree7b41430df34601f0387a32096baa8db93abbb633
parent73b9ef150fdc3f0013a44c15a6133817942404cf (diff)
[package] base-files: Autodetect newly added wireless hardware
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26166 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/files/etc/init.d/network4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network
index 9d4904ae4..c2095a4f5 100755
--- a/package/base-files/files/etc/init.d/network
+++ b/package/base-files/files/etc/init.d/network
@@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
START=40
STOP=90
@@ -9,11 +9,11 @@ boot() {
include /lib/network
setup_switch
+ /sbin/wifi detect >> /etc/config/wireless
grep -qs config /etc/config/wireless && {
/sbin/wifi up
} || {
rm -f /etc/config/wireless
- /sbin/wifi detect > /etc/config/wireless
}
scan_interfaces