forked from pool/rp-pppoe
63d1acf789
Copy from network/rp-pppoe based on submit request 24481 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/24481 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rp-pppoe?expand=0&rev=6
22 lines
936 B
Diff
22 lines
936 B
Diff
Index: scripts/pppoe-connect.in
|
|
===================================================================
|
|
--- scripts/pppoe-connect.in.orig
|
|
+++ scripts/pppoe-connect.in
|
|
@@ -214,11 +214,12 @@ fi
|
|
PPP_STD_OPTIONS="$PLUGIN_OPTS noipdefault noauth default-asyncmap $DEFAULTROUTE hide-password nodetach $PEERDNS mtu 1492 mru 1492 noaccomp 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
|