diff options
author | William Hubbs <williamh@gentoo.org> | 2011-11-23 08:17:33 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-11-23 08:17:33 -0600 |
commit | 483db945e11ef662e49cba3907b0be09c5b07fb3 (patch) | |
tree | 21694491cb5e141170437c505acd2cbcf9faceb9 /net/system.sh | |
parent | 17a1529416441391e3b55cd22e5584b530424932 (diff) |
Fix typo
Diffstat (limited to 'net/system.sh')
-rw-r--r-- | net/system.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/system.sh b/net/system.sh index 65557fc6..98017d5d 100644 --- a/net/system.sh +++ b/net/system.sh @@ -13,7 +13,7 @@ system_depend() _system_dns() { - local servers= domain= search= sortlist= options= x= + local servers= domain= search= sortlist= options= x= imetric= eval servers=\$dns_servers_${IFVAR} [ -z "${servers}" ] && servers=${dns_servers} @@ -47,8 +47,9 @@ _system_dns() # Support resolvconf if we have it. if [ -x /sbin/resolvconf ]; then x="-a ${IFACE}" - if [ -n "${metric_${IFVAR}}" ]; then - x="${x} -m ${metric_${IFVAR}}" + eval imetric=\${metric_${IFVAR}} + if [ -n "${imetric}" ]; then + x="${x} -m ${imetric}" fi printf "${buffer}" | resolvconf ${x} else |