From: Jo-Philipp Wich Date: Thu, 27 May 2010 23:04:56 +0000 (+0000) Subject: base-files: respect .auto option when running coldplug_interface_*() hooks on boot X-Git-Tag: reboot~19796 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c0820d3261a81a19c99e9c2a0b4595a5f6465e37;p=openwrt%2Fopenwrt.git base-files: respect .auto option when running coldplug_interface_*() hooks on boot SVN-Revision: 21588 --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 1a92a59d9d..9eab5e544e 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=base-files -PKG_RELEASE:=44 +PKG_RELEASE:=45 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 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 }