mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
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:
@@ -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'"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user