aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-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