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>
$timestr = &General::age("${General::swroot}/red/active");
$connstate = "<span>$Lang::tr{'connected'} - (<span>$timestr</span>) $profileused</span>";
} else {
- if ((open(KEEPCONNECTED, "</var/ipfire/red/keepconnected") == false) && ($Network::ppp{'RECONNECTION'} eq "persistent")) {
+ if (open(KEEPCONNECTED, "</var/ipfire/red/keepconnected") == false) {
$connstate = "<span>$Lang::tr{'connection closed'} $profileused</span>";
- } elsif (($Network::ppp{'RECONNECTION'} eq "dialondemand") && ( -e "${General::swroot}/red/dial-on-demand")) {
- $connstate = "<span>$Lang::tr{'dod waiting'} $profileused</span>";
} else {
$connstate = "<span>$Lang::tr{'connecting'} $profileused</span>" if (system("ps -ef | grep -q '[p]ppd'"));
}
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
HOLDOFF=30
fi
-if [ "$RECONNECTION" = "dialondemand" ]; then
- exit 0
-fi
-
msg_log () {
logger -t $(basename $0)[$$] $*
}