From: Roy Marples Date: Wed, 10 Sep 2008 12:34:25 +0000 (+0000) Subject: Export IF_METRIC to resolvconf. We should change to the -m option when openresolv... X-Git-Tag: v5.0.0~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b003adbae25eba9d7318ce0a249da480e61683;p=thirdparty%2Fdhcpcd.git Export IF_METRIC to resolvconf. We should change to the -m option when openresolv-1.8 gets around abit. --- diff --git a/dhcpcd-hooks/20-resolv.conf b/dhcpcd-hooks/20-resolv.conf index e757ddff..47b33692 100644 --- a/dhcpcd-hooks/20-resolv.conf +++ b/dhcpcd-hooks/20-resolv.conf @@ -75,6 +75,7 @@ add_resolv_conf() conf="${conf}nameserver ${x}\n" done if type resolvconf >/dev/null 2>&1; then + [ -n "${metric}" ] && export IF_METRIC="${metric}" printf "${conf}" | resolvconf -a "${interface}" return $? fi