|
|
@ -20,6 +20,12 @@ modem_n() { |
|
|
|
echo "$MODEMS" | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2 |
|
|
|
echo "$MODEMS" | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ring() { |
|
|
|
|
|
|
|
action="sxmo_vibratepine 2000 & sxmo_setpineled green 1" |
|
|
|
|
|
|
|
[[ -x "$XDG_CONFIG_HOME/sxmo/ringing" ]] && action="$XDG_CONFIG_HOME/sxmo/ringing" |
|
|
|
|
|
|
|
${action} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
checkforincomingcalls() { |
|
|
|
checkforincomingcalls() { |
|
|
|
VOICECALLID="$( |
|
|
|
VOICECALLID="$( |
|
|
|
mmcli -m "$(modem_n)" --voice-list-calls -a | |
|
|
|
mmcli -m "$(modem_n)" --voice-list-calls -a | |
|
|
@ -32,7 +38,7 @@ checkforincomingcalls() { |
|
|
|
return |
|
|
|
return |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
sxmo_vibratepine 2000 & sxmo_setpineled green 1 |
|
|
|
ring |
|
|
|
|
|
|
|
|
|
|
|
# Delete all previous calls which have been terminated calls |
|
|
|
# Delete all previous calls which have been terminated calls |
|
|
|
for CALLID in $( |
|
|
|
for CALLID in $( |
|
|
|