mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
scripts for the modem Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco@scardovi.com>
26 lines
505 B
Bash
26 lines
505 B
Bash
#!/bin/sh
|
|
|
|
log() {
|
|
echo "$@" | logger -t "manjaro:modem-setup"
|
|
}
|
|
|
|
QMBNCFG_CONFIG="1"
|
|
|
|
# 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
|