From cd56db10c17e6319e3fdd9a08bbd2689dc1a7a9c Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 28 Feb 2001 15:02:54 +0000 Subject: let ppp-watch watch over demand-dialed connections, remove a redundant nodetach (synonymous with -detach) --- sysconfig/network-scripts/ifup-ppp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index 11e9e87b..9dd16d38 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -5,9 +5,7 @@ cd /etc/sysconfig/network-scripts . network-functions . /etc/rc.d/init.d/functions - # ifup-post for PPP is handled through /etc/ppp/ip-up - if [ "${1}" = daemon ] ; then # we've been called from ppp-watch, so don't invoke it for persistence shift @@ -16,11 +14,7 @@ else CONFIG=$(basename $1) [ -f "${CONFIG}" ] || CONFIG=ifcfg-${1} source_config - if [ "${DEMAND}" != yes ] ; then - # let ppp-watch do the right thing - shift - exec /sbin/ppp-watch "${DEVICE}" "$@" - fi + exec /sbin/ppp-watch "${DEVICE}" "$@" fi CONFIG=$1 @@ -117,8 +111,6 @@ fi if [ ${DEMAND} = yes ] ; then opts="$opts demand ktune idle ${IDLETIMEOUT} holdoff ${RETRYTIMEOUT}" -else - opts="$opts nodetach" fi (logger -p daemon.info -t ifup-ppp \ -- cgit v1.2.1