2009-11-16 16:42:09 +01:00
|
|
|
Index: scripts/pppoe-connect.in
|
|
|
|
===================================================================
|
|
|
|
--- scripts/pppoe-connect.in.orig
|
2007-01-16 00:35:24 +01:00
|
|
|
+++ scripts/pppoe-connect.in
|
2013-04-25 14:54:25 +02:00
|
|
|
@@ -232,11 +232,12 @@ fi
|
|
|
|
PPP_STD_OPTIONS="$PLUGIN_OPTS $DOUNIT noipdefault noauth default-asyncmap $DEFAULTROUTE hide-password nodetach $PEERDNS mtu $MTU mru $MRU noaccomp nodeflate nopcomp novj novjccomp user $USER lcp-echo-interval $LCP_INTERVAL lcp-echo-failure $LCP_FAILURE $PPPD_EXTRA"
|
2007-01-16 00:35:24 +01:00
|
|
|
|
|
|
|
# Jigger DNS if required...
|
|
|
|
-if test "$DNSTYPE" = "SERVER" ; then
|
|
|
|
+#if test "$DNSTYPE" = "SERVER" ; then
|
|
|
|
# Sorry, dude...
|
|
|
|
- rm -f /etc/resolv.conf
|
|
|
|
- ln -s /etc/ppp/resolv.conf /etc/resolv.conf
|
|
|
|
-elif test "$DNSTYPE" = "SPECIFY" ; then
|
|
|
|
+ # done in ip-up/down
|
|
|
|
+ # rm -f /etc/resolv.conf
|
|
|
|
+ # ln -s /etc/ppp/resolv.conf /etc/resolv.conf
|
|
|
|
+if test "$DNSTYPE" = "SPECIFY" ; then
|
|
|
|
# Sorry, dude...
|
|
|
|
rm -f /etc/resolv.conf
|
|
|
|
echo "nameserver $DNS1" > /etc/resolv.conf
|