aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-27 23:04:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-27 23:04:56 +0000
commit423ba97e93187abde81ce1d3231a8369bde2ad9d (patch)
tree6627aab3982912813517c4eef9142ddcc1fb38a8 /package/base-files/files/etc
parent9b549f9028d6919df20d05f042eee19ec4ff3673 (diff)
downloadmaster-187ad058-423ba97e93187abde81ce1d3231a8369bde2ad9d.tar.gz
master-187ad058-423ba97e93187abde81ce1d3231a8369bde2ad9d.tar.bz2
master-187ad058-423ba97e93187abde81ce1d3231a8369bde2ad9d.zip
[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
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/network5
1 files changed, 4 insertions, 1 deletions
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
}