This commit is contained in:
William Hubbs 2011-11-23 08:17:33 -06:00
parent 17a1529416
commit 483db945e1

View File

@ -13,7 +13,7 @@ system_depend()
_system_dns() _system_dns()
{ {
local servers= domain= search= sortlist= options= x= local servers= domain= search= sortlist= options= x= imetric=
eval servers=\$dns_servers_${IFVAR} eval servers=\$dns_servers_${IFVAR}
[ -z "${servers}" ] && servers=${dns_servers} [ -z "${servers}" ] && servers=${dns_servers}
@ -47,8 +47,9 @@ _system_dns()
# Support resolvconf if we have it. # Support resolvconf if we have it.
if [ -x /sbin/resolvconf ]; then if [ -x /sbin/resolvconf ]; then
x="-a ${IFACE}" x="-a ${IFACE}"
if [ -n "${metric_${IFVAR}}" ]; then eval imetric=\${metric_${IFVAR}}
x="${x} -m ${metric_${IFVAR}}" if [ -n "${imetric}" ]; then
x="${x} -m ${imetric}"
fi fi
printf "${buffer}" | resolvconf ${x} printf "${buffer}" | resolvconf ${x}
else else