diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-06 19:50:22 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-06 19:50:22 +0000 |
commit | 6a3cbba92e609da8d161c63b8dd38745ec9a44d7 (patch) | |
tree | 529573682f572a1ad5e934e9155656415153c2f3 /package/base-files/files/etc | |
parent | cd7f3293b740efa15f22f1f8d52db79af7c28218 (diff) | |
download | upstream-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.tar.gz upstream-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.tar.bz2 upstream-6a3cbba92e609da8d161c63b8dd38745ec9a44d7.zip |
base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
SVN-Revision: 21389
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-x | package/base-files/files/etc/init.d/network | 11 |
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() { |