diff options
author | Travis Kemen <thepeople@openwrt.org> | 2009-09-06 17:02:14 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2009-09-06 17:02:14 +0000 |
commit | 2aac835be8b41fc6cb0f279bedef625d666aae5c (patch) | |
tree | 2714985d894bf7a2234e248dada4205afe44d458 /package/base-files/files/etc/init.d | |
parent | 31de48c7d8189c97510a51304b0a3f053682a35b (diff) | |
download | upstream-2aac835be8b41fc6cb0f279bedef625d666aae5c.tar.gz upstream-2aac835be8b41fc6cb0f279bedef625d666aae5c.tar.bz2 upstream-2aac835be8b41fc6cb0f279bedef625d666aae5c.zip |
fix nonhotpluggable networks not being brought up. Closes #2781
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17527 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-x | package/base-files/files/etc/init.d/network | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network index e77db02517..75103ec073 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -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() { |