Remove RECONNECTION=dialondemand

We don't support this at all and so we don't need to check any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-03-23 16:55:41 +01:00
parent cc5613b3b5
commit 66db90757a
3 changed files with 5 additions and 20 deletions

View File

@@ -402,19 +402,10 @@ case "${1}" in
AUTH=""
fi
### Dial On Demand
#
if [ "${RECONNECTION}" != "persistent" ]; then
if [ "${TIMEOUT}" != "0" ] && [ "${TIMEOUT}" != "" ]; then
SECONDS=$[${TIMEOUT} * 60]
else
SECONDS=300
fi
if [ "${RECONNECTION}" == "dialondemand" ]; then
touch /var/ipfire/red/dial-on-demand
DEMAND="demand persist idle ${SECONDS} 10.112.112.112:10.112.112.113"
DEMAND+=" ipcp-accept-remote ipcp-accept-local noipdefault ktune"
fi
if [ "${TIMEOUT}" != "0" ] && [ "${TIMEOUT}" != "" ]; then
SECONDS=$[${TIMEOUT} * 60]
else
SECONDS=300
fi
if [ "$TYPE" == "pppoe" ]; then

View File

@@ -36,10 +36,6 @@ if [ ! $HOLDOFF ]; then
HOLDOFF=30
fi
if [ "$RECONNECTION" = "dialondemand" ]; then
exit 0
fi
msg_log () {
logger -t $(basename $0)[$$] $*
}