aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-03-15 00:44:15 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-03-15 00:44:15 +0000
commit84642c09ba5d4db5f7894087f634eb4ef1611a8b (patch)
tree7b41430df34601f0387a32096baa8db93abbb633 /package
parent65e7aa808763615095665c199f1565779077ee4c (diff)
downloadupstream-84642c09ba5d4db5f7894087f634eb4ef1611a8b.tar.gz
upstream-84642c09ba5d4db5f7894087f634eb4ef1611a8b.tar.bz2
upstream-84642c09ba5d4db5f7894087f634eb4ef1611a8b.zip
[package] base-files: Autodetect newly added wireless hardware
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26166 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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 9d4904ae43..c2095a4f5f 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