From 526fb3c824f6863be3d39ac94146f74edc434fa4 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 27 May 2010 23:04:56 +0000 Subject: [package] base-files: respect .auto option when running coldplug_interface_*() hooks on boot git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21588 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/init.d/network | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/base-files/files/etc') diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network index d60d41a64e..9d4904ae43 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -23,7 +23,10 @@ boot() { local proto config_get proto "$ifc" proto - type "coldplug_interface_$proto" >/dev/null && \ + local auto + config_get_bool auto "$ifc" auto 1 + + type "coldplug_interface_$proto" >/dev/null && [ "$auto" = 1 ] && \ coldplug_interface_$proto "$ifc" done } -- cgit v1.2.3