Fix mobile data static IP bearer, call recording, earpiece audio, and ringtone/vibration

This commit is contained in:
Luxferre
2026-10-25 20:23:17 +02:00
parent 21dfb187be
commit a8a28fa685
23 changed files with 624 additions and 212 deletions
+5 -2
View File
@@ -2,6 +2,8 @@
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
export PATH="${XDG_CONFIG_HOME:-${HOME:-/home/user}/.config}/sxmo/hooks:/usr/share/sxmo/default_hooks:$PATH"
# include common definitions
# shellcheck source=configs/default_hooks/sxmo_hook_icons.sh
. sxmo_hook_icons.sh
@@ -107,9 +109,10 @@ checkforfinishedcalls() {
# If it was the last call
if ! sxmo_modemcall.sh list_active_calls | grep -q .; then
# Cleanup
sxmo_jobs.sh stop ringing
rm -f "$XDG_RUNTIME_DIR/sxmo_calls/"* 2>/dev/null || true
if [ "$STATE" != muted ]; then
sxmo_vibrate 1000 "${SXMO_VIBRATE_STRENGTH:-1}" &
if [ "$STATE" != muted ] && [ ! -f "$XDG_CONFIG_HOME/sxmo/.novibrate" ]; then
sxmo_vibrate 600 &
fi
sxmo_jobs.sh stop incall_menu
sxmo_jobs.sh stop proximity_lock