changeset 965:afcf9d835f82 draft

Export IF_METRIC to resolvconf. We should change to the -m option when openresolv-1.8 gets around abit.
author Roy Marples <roy@marples.name>
date Wed, 10 Sep 2008 12:34:25 +0000
parents 56f30c15188b
children e3e131f496fb
files dhcpcd-hooks/20-resolv.conf
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd-hooks/20-resolv.conf	Tue Sep 09 20:52:39 2008 +0000
+++ b/dhcpcd-hooks/20-resolv.conf	Wed Sep 10 12:34:25 2008 +0000
@@ -75,6 +75,7 @@
 		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