Files
sxmo-utils/configs/default_hooks/sxmo_hook_postwake.sh
Willow Barraco 4e0715d87a Allow to disable modem related features
Usefull on desktop, and e-reader devices. Disable some daemons, status
bar icons, and error messages.
2023-10-17 09:59:05 +02:00

18 lines
424 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
if [ -z "$SXMO_NO_MODEM" ]; then
MMCLI="$(mmcli -m any -J 2>/dev/null)"
if [ -z "$MMCLI" ]; then
sxmo_notify_user.sh "Modem crashed! 30s recovery."
sxmo_wakelock.sh lock sxmo_modem_crashed 30s
fi
fi
# Add here whatever you want to do