aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2009-09-06 17:02:14 +0000
committerTravis Kemen <thepeople@openwrt.org>2009-09-06 17:02:14 +0000
commit27915ac778c7b142a5fe9a8db977e2d89706d3f2 (patch)
treed2534c0b08c2ec9840dccfb2ebea6689e3499c55 /package/base-files/files/etc
parent65fa1debdae9f85f953d70f2eeba0814bfc4d9ba (diff)
downloadupstream-27915ac778c7b142a5fe9a8db977e2d89706d3f2.tar.gz
upstream-27915ac778c7b142a5fe9a8db977e2d89706d3f2.tar.bz2
upstream-27915ac778c7b142a5fe9a8db977e2d89706d3f2.zip
fix nonhotpluggable networks not being brought up. Closes #2781
SVN-Revision: 17527
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/network15
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() {