2020-05-28 03:34:41 +02:00
|
|
|
diff -Pdpru rp-pppoe-3.14.orig/scripts/pppoe-connect.in rp-pppoe-3.14/scripts/pppoe-connect.in
|
|
|
|
--- rp-pppoe-3.14.orig/scripts/pppoe-connect.in 2020-05-27 03:29:37.000000000 +0300
|
|
|
|
+++ rp-pppoe-3.14/scripts/pppoe-connect.in 2020-05-28 03:18:01.758770756 +0300
|
|
|
|
@@ -232,16 +232,12 @@ fi
|
2013-04-25 14:54:25 +02:00
|
|
|
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
|
2020-05-28 03:34:41 +02:00
|
|
|
- # Sorry, dude...
|
2007-01-16 00:35:24 +01:00
|
|
|
- rm -f /etc/resolv.conf
|
|
|
|
- ln -s /etc/ppp/resolv.conf /etc/resolv.conf
|
|
|
|
-elif test "$DNSTYPE" = "SPECIFY" ; then
|
|
|
|
+if test "$DNSTYPE" = "SPECIFY" ; then
|
|
|
|
# Sorry, dude...
|
|
|
|
rm -f /etc/resolv.conf
|
|
|
|
echo "nameserver $DNS1" > /etc/resolv.conf
|
2020-05-28 03:34:41 +02:00
|
|
|
if test -n "$DNS2" ; then
|
|
|
|
- echo "nameserver $DNS2" >> /etc/resolv.conf
|
|
|
|
+ echo "nameserver $DNS2" >> /etc/resolv.conf
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|