2004-09-14 12:39:40 +00:00
|
|
|
--- ppp-2.4.2/scripts/ip-down.local.add.change_resolv_conf 1999-02-27 05:32:42.000000000 +0100
|
|
|
|
+++ ppp-2.4.2/scripts/ip-down.local.add 2004-09-14 14:36:20.058008752 +0200
|
|
|
|
@@ -9,12 +9,13 @@
|
|
|
|
#
|
|
|
|
# Nick Walker (nickwalker@email.com)
|
|
|
|
#
|
|
|
|
+. /etc/sysconfig/network-scripts/network-functions
|
|
|
|
|
|
|
|
-if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
|
|
|
|
- if [ -f /etc/ppp/resolv.prev ]; then
|
|
|
|
- cp -f /etc/ppp/resolv.prev /etc/resolv.conf
|
|
|
|
+if [ -n "$USEPEERDNS" -a -f /var/run/ppp/resolv.conf ]; then
|
|
|
|
+ if [ -f /var/run/ppp/resolv.prev ]; then
|
|
|
|
+ change_resolv_conf /var/run/ppp/resolv.prev
|
|
|
|
else
|
|
|
|
- rm -f /etc/resolv.conf
|
|
|
|
+ change_resolv_conf
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2004-09-14 09:35:03 +00:00
|
|
|
--- ppp-2.4.2/scripts/ip-up.local.add.change_resolv_conf 1999-11-15 04:28:10.000000000 +0100
|
2004-09-14 12:39:40 +00:00
|
|
|
+++ ppp-2.4.2/scripts/ip-up.local.add 2004-09-14 14:37:39.129061828 +0200
|
2004-09-14 09:35:03 +00:00
|
|
|
@@ -9,16 +9,19 @@
|
|
|
|
#
|
|
|
|
# Nick Walker (nickwalker@email.com)
|
|
|
|
#
|
|
|
|
+. /etc/sysconfig/network-scripts/network-functions
|
|
|
|
|
2004-09-14 12:39:40 +00:00
|
|
|
-if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
|
|
|
|
- rm -f /etc/ppp/resolv.prev
|
|
|
|
+if [ -n "$USEPEERDNS" -a -f /var/run/ppp/resolv.conf ]; then
|
|
|
|
+ rm -f /var/run/ppp/resolv.prev
|
2004-09-14 09:35:03 +00:00
|
|
|
if [ -f /etc/resolv.conf ]; then
|
2004-09-14 12:39:40 +00:00
|
|
|
- cp /etc/resolv.conf /etc/ppp/resolv.prev
|
2004-09-14 09:35:03 +00:00
|
|
|
- grep domain /etc/ppp/resolv.prev > /etc/resolv.conf
|
|
|
|
- grep search /etc/ppp/resolv.prev >> /etc/resolv.conf
|
|
|
|
- cat /etc/ppp/resolv.conf >> /etc/resolv.conf
|
2004-09-14 12:39:40 +00:00
|
|
|
+ cp /etc/resolv.conf /var/run/ppp/resolv.prev
|
2004-09-14 09:35:03 +00:00
|
|
|
+ rscf=/var/run/ppp/resolv.new
|
2004-09-14 12:39:40 +00:00
|
|
|
+ grep domain /var/run/ppp/resolv.prev > $rscf
|
|
|
|
+ grep search /var/run/ppp/resolv.prev >> $rscf
|
2004-09-14 09:35:03 +00:00
|
|
|
+ change_resolv_conf $rscf
|
|
|
|
+ rm -f $rscf
|
|
|
|
else
|
|
|
|
- cp /etc/ppp/resolv.conf /etc
|
2004-09-14 12:39:40 +00:00
|
|
|
+ change_resolv_conf /var/run/ppp/resolv.conf
|
2004-09-14 09:35:03 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|