aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-06 13:06:56 +0000
committerRoy Marples <roy@marples.name>2008-01-06 13:06:56 +0000
commitda4217fec805602616de7da6fffff158857ded83 (patch)
tree79346b73d736c4f6c624edad13fea08fe26e1b7e /sh
parent6ccc00a050e02c6380c68e62509801d8b3ade658 (diff)
Add net config's to have their own depend function per interface.
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/net.sh b/sh/net.sh
index ef701c6a..05081a7d 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -45,6 +45,9 @@ depend() {
lo|lo0);;
*)
after net.lo net.lo0
+ if type depend_${IFVAR} >/dev/null 2>&1; then
+ depend_${IFVAR}
+ fi
local prov=
eval prov=\$RC_NEED_${IFVAR}
[ -n "${prov}" ] && need ${prov}