diff options
Diffstat (limited to 'net/rp-pppoe/patches/patch-af')
-rw-r--r-- | net/rp-pppoe/patches/patch-af | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/rp-pppoe/patches/patch-af b/net/rp-pppoe/patches/patch-af new file mode 100644 index 00000000000..81613fffc60 --- /dev/null +++ b/net/rp-pppoe/patches/patch-af @@ -0,0 +1,29 @@ +$NetBSD: patch-af,v 1.1 2002/10/09 08:30:43 tron Exp $ + +--- ../scripts/adsl-connect.in.orig Mon Jul 8 16:38:24 2002 ++++ ../scripts/adsl-connect.in Mon Oct 7 22:31:42 2002 +@@ -218,12 +218,20 @@ + + # Jigger DNS if required... + if test "$DNSTYPE" = "SERVER" ; then +- # Sorry, dude... +- rm -f /etc/resolv.conf ++ if test -f /etc/resolv.conf -a ! -f /etc/resolv.conf.rp-pppoe-save ++ then ++ mv /etc/resolv.conf /etc/resolv.conf.rp-pppoe-save ++ else ++ rm -f /etc/resolv.conf ++ fi + ln -s /etc/ppp/resolv.conf /etc/resolv.conf + elif test "$DNSTYPE" = "SPECIFY" ; then +- # Sorry, dude... +- rm -f /etc/resolv.conf ++ if test -f /etc/resolv.conf -a ! -f /etc/resolv.conf.rp-pppoe-save ++ then ++ mv /etc/resolv.conf /etc/resolv.conf.rp-pppoe-save ++ else ++ rm -f /etc/resolv.conf ++ fi + echo "nameserver $DNS1" > /etc/resolv.conf + if test -n "$DNS2" ; then + echo "nameserver $DNS2" >> /etc/resolv.conf |