forked from pool/rp-pppoe
20 lines
844 B
Diff
20 lines
844 B
Diff
|
--- scripts/pppoe-connect.in
|
||
|
+++ scripts/pppoe-connect.in
|
||
|
@@ -217,11 +217,12 @@
|
||
|
PPP_STD_OPTIONS="$PLUGIN_OPTS noipdefault noauth default-asyncmap $DEFAULTROUTE hide-password nodetach $PEERDNS mtu 1492 mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp user $USER lcp-echo-interval $LCP_INTERVAL lcp-echo-failure $LCP_FAILURE $PPPD_EXTRA"
|
||
|
|
||
|
# 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
|