aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-11-20 21:27:38 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-11-22 08:50:26 -0600
commit76fec586336775ef8e313df3f8c3981c6b4fdfa8 (patch)
tree442f17ce101b284af1ba6eee9dd215e5d3501622 /net
parentd8bbeb184f462199582fa265c9b681288884ecd9 (diff)
pass the per-interface metric to resolvconf
Reported-by: Alon Bar-Lev <alon.barlev@gmail.com> x-Gentoo-Bug: 364907 x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?364907
Diffstat (limited to 'net')
-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