1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-29 15:01:09 +02:00

[package] base-files: Autodetect newly added wireless hardware

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26166 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2011-03-15 00:44:15 +00:00
parent 73b9ef150f
commit 898495ff41

View File

@ -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