summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-06 19:50:22 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-06 19:50:22 +0000
commitee56eec69c221e214bf9655a53545d8eb55af466 (patch)
treef07a59c4cb248fd5ade8034b9c2e7accfbf95ed3 /package/base-files/files/etc
parentb112692259d0997b1cb3c5dde7546b4be69bf210 (diff)
[package] base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21389 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/network11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network
index 43d0a84232..d60d41a64e 100755
--- a/package/base-files/files/etc/init.d/network
+++ b/package/base-files/files/etc/init.d/network
@@ -15,6 +15,17 @@ boot() {
rm -f /etc/config/wireless
/sbin/wifi detect > /etc/config/wireless
}
+
+ scan_interfaces
+
+ local ifc
+ for ifc in $interfaces; do
+ local proto
+ config_get proto "$ifc" proto
+
+ type "coldplug_interface_$proto" >/dev/null && \
+ coldplug_interface_$proto "$ifc"
+ done
}
start() {