aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-06 19:50:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-06 19:50:22 +0000
commit94b8d4ddc8d7864906acb1e466a372d574925ea8 (patch)
treef07a59c4cb248fd5ade8034b9c2e7accfbf95ed3 /package/base-files
parentaf04755af3cb1a8a0ebb3aa2d0634467547563a6 (diff)
downloadupstream-94b8d4ddc8d7864906acb1e466a372d574925ea8.tar.gz
upstream-94b8d4ddc8d7864906acb1e466a372d574925ea8.tar.bz2
upstream-94b8d4ddc8d7864906acb1e466a372d574925ea8.zip
[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')
-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() {