aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ppp
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2000-08-24 02:40:34 +0000
committerNalin Dahyabhai <nalin@redhat.com>2000-08-24 02:40:34 +0000
commit82e5ba1086fd1826538b96d1625bbf4e303f16ba (patch)
tree6e7105f99ee0bc7eebb3e75d2719376e22cfe837 /sysconfig/network-scripts/ifup-ppp
parent1ab5308438ace26929c034fc97f2ac5248ee3bf2 (diff)
downloadinitscripts-82e5ba1086fd1826538b96d1625bbf4e303f16ba.tar
initscripts-82e5ba1086fd1826538b96d1625bbf4e303f16ba.tar.gz
initscripts-82e5ba1086fd1826538b96d1625bbf4e303f16ba.tar.bz2
initscripts-82e5ba1086fd1826538b96d1625bbf4e303f16ba.tar.xz
initscripts-82e5ba1086fd1826538b96d1625bbf4e303f16ba.zip
add ktune holdoff ${RETRYTIMEOUT} to demand ppp options
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp11
1 files changed, 6 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index fb9ce790..af44875d 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -33,6 +33,10 @@ if [ -z "${RETRYTIMEOUT}" ]; then
RETRYTIMEOUT=30
fi
+if [ -z "${IDLETIMEOUT}" ]; then
+ IDLETIMEOUT=600
+fi
+
if [ "${2}" = "boot" -a "${ONBOOT}" = "no" ]; then
exit
fi
@@ -86,12 +90,9 @@ if [ "${DEBUG}" = yes ] ; then
opts="$opts debug"
chatdbg="-v"
fi
+
if [ ${DEMAND} = yes ] ; then
- if [ -n "${IDLETIMEOUT}" ] ; then
- opts="$opts demand idle ${IDLETIMEOUT}"
- else
- opts="$opts demand idle 600"
- fi
+ opts="$opts demand ktune idle ${IDLETIMEOUT} holdoff ${RETRYTIMEOUT}"
else
opts="$opts nodetach"
fi