aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-09-06 18:39:44 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-09-06 18:39:44 +0000
commit5ae520ecf238d6c5d1db515bb3217501f93c8a13 (patch)
treeace07ae0180e057c6a7a482682ef632b4d4e2c14
parentc87eb6700a2bec6a36e72d5cbad6590551ffa3bb (diff)
downloadinitscripts-5ae520ecf238d6c5d1db515bb3217501f93c8a13.tar
initscripts-5ae520ecf238d6c5d1db515bb3217501f93c8a13.tar.gz
initscripts-5ae520ecf238d6c5d1db515bb3217501f93c8a13.tar.bz2
initscripts-5ae520ecf238d6c5d1db515bb3217501f93c8a13.tar.xz
initscripts-5ae520ecf238d6c5d1db515bb3217501f93c8a13.zip
DEFROUTE defaults on; PEERDNS documented and defaults on
-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