]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
Remove RECONNECTION=dialondemand
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 23 Mar 2024 15:55:41 +0000 (16:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Apr 2024 17:35:47 +0000 (19:35 +0200)
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>
config/cfgroot/header.pl
src/initscripts/networking/red
src/initscripts/system/connectd

index 68c3cb8387f25a1eace4a9e34df81dade58651fe..9b35c55b1e4378da2da01f3c22cd8753343b663b 100644 (file)
@@ -623,10 +623,8 @@ sub connectionstatus
                        $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'"));
                        }
index 51bf95a4362a0113732cbc3019288d45f04ad6cb..1e411609742f59269ba0012b6cfc208f21675500 100644 (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
index 5ab1861089150e0d54484c6c73e4a75f70682d19..d956c2847aac542770e568580b4038d6e77a8e10 100644 (file)
@@ -36,10 +36,6 @@ if [ ! $HOLDOFF ]; then
        HOLDOFF=30
 fi
 
-if [ "$RECONNECTION" = "dialondemand" ]; then
-       exit 0
-fi
-
 msg_log () {
        logger -t $(basename $0)[$$] $*
 }