Files
pmaports-rtwo/device/testing/device-pine64-pinephone/setup-modem.sh
T
Aster Boese 8b4155af3b pine64-pinephone: move to testing
The kernel version of linux-postmarketos-allwinner is older than six months.
It has been a month since the warning issue was made, so this device must be
demoted.

See pmaports#4676

[ci:skip-vercheck]
[ci:skip-kconfigcheck]

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9248>
2026-08-05 00:17:07 +00:00

33 lines
569 B
Bash

#!/bin/sh
log() {
echo "$@" | logger -t "postmarketOS:modem-setup"
}
QMBNCFG_CONFIG="1"
if [ -z "$1" ]
then
DEV="/dev/EG25.AT"
else
DEV="$1"
fi
# Read current config
QMBNCFG_ACTUAL_CONFIG=$(echo 'AT+QMBNCFG="AutoSel"' | atinout - $DEV -)
if echo $QMBNCFG_ACTUAL_CONFIG | grep -q $QMBNCFG_CONFIG
then
log "Modem already configured"
exit 0
fi
# Configure VoLTE auto selecting profile
RET=$(echo "AT+QMBNCFG=\"AutoSel\",$QMBNCFG_CONFIG" | atinout - $DEV -)
if ! echo $RET | grep -q OK
then
log "Failed to enable VoLTE profile auto selecting: $RET"
exit 1
fi