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

(-)ip-up.old (-2 / +3 lines)
Lines 11-17 Link Here
11
# $5 = remote-IP-address
11
# $5 = remote-IP-address
12
# $6 = ipparam
12
# $6 = ipparam
13
13
14
if [ "$USEPEERDNS" ]; then
14
if [ "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
15
    if [[ -z `/bin/grep 127.0.0.1 /etc/resolv.conf` ]]; then  
15
16
16
	# add the server supplied DNS entries to /etc/resolv.conf
17
	# add the server supplied DNS entries to /etc/resolv.conf
17
	# (taken from debian's 0000usepeerdns)
18
	# (taken from debian's 0000usepeerdns)
Lines 32-38 Link Here
32
	mv $REALRESOLVCONF.tmp $REALRESOLVCONF
33
	mv $REALRESOLVCONF.tmp $REALRESOLVCONF
33
34
34
	fi
35
	fi
35
36
    fi
36
fi
37
fi
37
38
38
[ -f /etc/init.d/firewall ] && /etc/init.d/firewall start
39
[ -f /etc/init.d/firewall ] && /etc/init.d/firewall start
(-)ip-down.old (-2 / +3 lines)
Lines 11-17 Link Here
11
# $5 = remote-IP-address
11
# $5 = remote-IP-address
12
# $6 = ipparam
12
# $6 = ipparam
13
13
14
if [ "$USEPEERDNS" ]; then
14
if [ "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
15
    if [[ -z `/bin/grep 127.0.0.1 /etc/resolv.conf` ]] ; then
15
16
16
	# taken from debian's 0000usepeerdns
17
	# taken from debian's 0000usepeerdns
17
	# follow any symlink to find the real file
18
	# follow any symlink to find the real file
Lines 25-31 Link Here
25
	fi
26
	fi
26
27
27
	fi
28
	fi
28
29
    fi
29
fi
30
fi
30
31
31
[ -f /etc/init.d/firewall ] && /etc/init.d/firewall stop
32
[ -f /etc/init.d/firewall ] && /etc/init.d/firewall stop

Return to bug 54994