ModemMonitor: Periodically check whether the modem is still alive, reset it if not

Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
Maarten van Gompel 2021-07-25 14:26:40 +02:00 committed by Stacy Harper
parent 13b29f7139
commit edc48a01d2
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65
5 changed files with 59 additions and 1 deletions

View file

@ -140,6 +140,7 @@ programchoicesinit() {
$icon_aru Brightness ^ 1 ^ sxmo_brightness.sh up
$icon_ard Brightness ^ 1 ^ sxmo_brightness.sh down
$icon_phn Modem Toggle ^ 1 ^ sxmo_modemmonitortoggle.sh
$icon_phn Modem Reset ^ 1 ^ sxmo_modemmonitortoggle.sh reset
$icon_inf Modem Info ^ 0 ^ sxmo_modeminfo.sh
$icon_phl Modem Log ^ 0 ^ sxmo_modemlog.sh
$icon_wif Wifi $(

View file

@ -48,6 +48,8 @@ update() {
MODEMMON=""
elif [ connected = "$MODEMSTATE" ]; then
MODEMMON=""
elif [ failed = "$MODEMSTATE" ] || [ disconnected = "$MODEMSTATE" ]; then
MODEMMON=""
else
MODEMMON=""
fi