2
0
forked from Ivasoft/openwrt

fix nonhotpluggable networks not being brought up. Closes #2781

SVN-Revision: 17527
This commit is contained in:
Travis Kemen
2009-09-06 17:02:14 +00:00
parent 65fa1debda
commit 27915ac778
3 changed files with 17 additions and 0 deletions

View File

@@ -4,7 +4,18 @@
START=40
STOP=40
config_cb() {
local cfg_type="$1"
case "$cfg_type" in
interface)
append networks "$2" "$N"
;;
esac
}
boot() {
uci_load network
setup_switch() { return 0; }
include /lib/network
@@ -12,6 +23,10 @@ boot() {
[ -s /etc/config/wireless ] || \
/sbin/wifi detect > /etc/config/wireless
/sbin/wifi up
for network in $networks; do
config_get startupcheck $network started
[ "$startupcheck" = "" ] && ifup $network
done
}
start() {