Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 353045
Collapse All | Expand All

(-)/etc/ppp/ip-up.d/40-dns.sh.orig (+7 lines)
Lines 9-19 Link Here
9
if [ "$USEPEERDNS" ]; then
9
if [ "$USEPEERDNS" ]; then
10
10
11
	if [ -x /sbin/resolvconf ]; then
11
	if [ -x /sbin/resolvconf ]; then
12
	let count=0
13
	while ! [ -f /var/lib/run/resolvconf/interfaces/$1 ] ; do
12
		{
14
		{
13
			echo "# Generated by ppp for $1"
15
			echo "# Generated by ppp for $1"
14
			[ -n "$DNS1" ] && echo "nameserver $DNS1"
16
			[ -n "$DNS1" ] && echo "nameserver $DNS1"
15
			[ -n "$DNS2" ] && echo "nameserver $DNS2"
17
			[ -n "$DNS2" ] && echo "nameserver $DNS2"
16
		} | /sbin/resolvconf -a "$1"
18
		} | /sbin/resolvconf -a "$1"
19
		let count++ 
20
		[ $count -ge 20 ] && break
21
		sleep 3
22
	done
23
	echo "`date '+%b %d %k:%M:%S'` 40-dns.sh ran resolvconf using $DNS1 and $DNS2" >>/var/log/messages
17
	else
24
	else
18
		# add the server supplied DNS entries to /etc/resolv.conf
25
		# add the server supplied DNS entries to /etc/resolv.conf
19
		# (taken from debian's 0000usepeerdns)
26
		# (taken from debian's 0000usepeerdns)

Return to bug 353045