From 5ae520ecf238d6c5d1db515bb3217501f93c8a13 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Mon, 6 Sep 1999 18:39:44 +0000 Subject: DEFROUTE defaults on; PEERDNS documented and defaults on --- sysconfig/network-scripts/ifup-post | 2 +- sysconfig/network-scripts/ifup-ppp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sysconfig') 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 -- cgit v1.2.1