aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/system.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/system.sh b/net/system.sh
index c4510788..65557fc6 100644
--- a/net/system.sh
+++ b/net/system.sh
@@ -46,7 +46,11 @@ _system_dns()
# Support resolvconf if we have it.
if [ -x /sbin/resolvconf ]; then
- printf "${buffer}" | resolvconf -a "${IFACE}"
+ x="-a ${IFACE}"
+ if [ -n "${metric_${IFVAR}}" ]; then
+ x="${x} -m ${metric_${IFVAR}}"
+ fi
+ printf "${buffer}" | resolvconf ${x}
else
printf "${buffer}" > /etc/resolv.conf
chmod 644 /etc/resolv.conf