summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-31 09:28:34 +0000
committerRoy Marples <roy@marples.name>2007-12-31 09:28:34 +0000
commitb6aa56ce14cab6c6a1c4c88a1d0ec15976e5b25e (patch)
tree8f905cf1ce9ecfdd75d1ad05c6683fddaa3a337d /sh
parent0a28d694134254b02760b7ca52a303eddbcaa2da (diff)
downloadopenrc-b6aa56ce14cab6c6a1c4c88a1d0ec15976e5b25e.tar.gz
openrc-b6aa56ce14cab6c6a1c4c88a1d0ec15976e5b25e.tar.bz2
openrc-b6aa56ce14cab6c6a1c4c88a1d0ec15976e5b25e.tar.xz
Fix metric_$IFVAR
Diffstat (limited to 'sh')
-rwxr-xr-xsh/net.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sh/net.sh b/sh/net.sh
index 07ac1c2..faa5e18 100755
--- a/sh/net.sh
+++ b/sh/net.sh
@@ -454,7 +454,8 @@ _load_config() {
start() {
local IFACE=${SVCNAME#*.} oneworked=false module=
- local IFVAR=$(_shell_var "${IFACE}") cmd= metric=0 our_metric=$metric
+ local IFVAR=$(_shell_var "${IFACE}") cmd= our_metric=
+ local metric=0
einfo "Bringing up interface ${IFACE}"
eindent
@@ -506,6 +507,7 @@ start() {
_load_config
config_index=0
+ eval our_metric=\$metric_${IFVAR}
if [ -n "${our_metric}" ]; then
metric=${our_metric}
elif [ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ]; then