aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysconfig.txt2
-rwxr-xr-xsysconfig/network-scripts/ifup-post2
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp4
3 files changed, 5 insertions, 3 deletions
diff --git a/sysconfig.txt b/sysconfig.txt
index b3a19b3f..ad87a888 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -275,6 +275,8 @@ Files in /etc/sysconfig/network-scripts/
If this variable is set, then the chat script (if it
exists) is ignored, and wvdial is used to open the
PPP connection.
+ PEERDNS=yes|no
+ modify /etc/resolv.conf if peer uses msdns extension
DEFROUTE=yes|no (set this interface as default route?)
ESCAPECHARS=yes|no (simplified interface here doesn't let people
specify which characters to escape; almost everyone can use
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index cd5b0267..43b7126e 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -28,7 +28,7 @@ if [ -n "$NEEDHOSTNAME" -a "${DEVICE}" != lo -a "${DEVICETYPE}" != "ppp" -a "${D
eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname $HOSTNAME
fi
-if [ "$DEVICETYPE" = ppp -a "$PEERDNS" = yes -a -n "$DNS1" ] &&
+if [ "$DEVICETYPE" = ppp -a "$PEERDNS" != no -a -n "$DNS1" ] &&
tr=`mktemp /tmp/resolv.XXXXXX` ; then
# replace only the first two nameserver lines; cannot count on awk
# and do not know if sed is capable of this...
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 677d84e8..3fd810f7 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -54,10 +54,10 @@ if [ "${ESCAPECHARS}" = yes ] ; then
elif [ "${ESCAPECHARS}" = no ] ; then
opts="$opts asyncmap 00000000"
fi
-if [ "${DEFROUTE}" = yes ] ; then
+if [ "${DEFROUTE}" != no ] ; then
opts="$opts defaultroute"
fi
-if [ "${PEERDNS}" = yes ] ; then
+if [ "${PEERDNS}" != no ] ; then
opts="$opts usepeerdns"
fi
if [ -n "${MRU}" ] ; then