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
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user