summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2006-08-18 21:59:32 +0000
committerBenedikt Boehm <hollow@gentoo.org>2006-08-18 21:59:32 +0000
commit638caa52dfc024d7acb0fea0e89592b5176dc265 (patch)
treed5e6f2ea1b8cff462d0f2af5fbd229f2e418ca0b /net-scripts/init.d/net.lo
parentmerge r2193 (diff)
downloadbaselayout-vserver-638caa52dfc024d7acb0fea0e89592b5176dc265.tar.gz
baselayout-vserver-638caa52dfc024d7acb0fea0e89592b5176dc265.tar.bz2
baselayout-vserver-638caa52dfc024d7acb0fea0e89592b5176dc265.zip
merge r2196
svn path=/baselayout-vserver/branches/baselayout-1_12/; revision=417
Diffstat (limited to 'net-scripts/init.d/net.lo')
-rwxr-xr-xnet-scripts/init.d/net.lo11
1 files changed, 10 insertions, 1 deletions
diff --git a/net-scripts/init.d/net.lo b/net-scripts/init.d/net.lo
index 22e0616..31ccebb 100755
--- a/net-scripts/init.d/net.lo
+++ b/net-scripts/init.d/net.lo
@@ -19,7 +19,16 @@ depend() {
# For example, br0 may need eth0 and eth1
local iface="${SVCNAME#*.}"
[[ $(type -t "depend_${iface}") == "function" ]] && depend_${iface}
- [[ ${iface} != "lo" && ${iface} != "lo0" ]] && after net.lo net.lo0
+
+ if [[ ${iface} != "lo" && ${iface} != "lo0" ]] ; then
+ after net.lo net.lo0
+
+ # Support new style RC_NEED and RC_USE in one net file
+ local x="RC_NEED_${iface}"
+ [[ -n ${!x} ]] && need ${!x}
+ x="RC_USE_${iface}"
+ [[ -n ${!x} ]] && use ${!x}
+ fi
return 0
}