summaryrefslogtreecommitdiff
path: root/package
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 /package
parentcd7f3293b740efa15f22f1f8d52db79af7c28218 (diff)
downloadmtk-20170518-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.zip
mtk-20170518-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.tar.gz
mtk-20170518-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.tar.bz2
base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
SVN-Revision: 21389
Diffstat (limited to 'package')
-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 43d0a84..d60d41a 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() {