summaryrefslogtreecommitdiffstats
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
commit6a3cbba92e609da8d161c63b8dd38745ec9a44d7 (patch)
tree529573682f572a1ad5e934e9155656415153c2f3
parentcd7f3293b740efa15f22f1f8d52db79af7c28218 (diff)
downloadmaster-31e0f0ae-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.tar.gz
master-31e0f0ae-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.tar.bz2
master-31e0f0ae-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.zip
base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
SVN-Revision: 21389
-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() {