Version bump

This commit is contained in:
Gerben Jan Dijkman
2022-01-19 14:27:11 +01:00
parent 084afd5a22
commit 8d7b56aa01
5 changed files with 69 additions and 9 deletions

View File

@@ -0,0 +1,27 @@
#!/bin/sh
log() {
echo "$@" | logger -t "manjaro:modem-setup"
}
QMBNCFG_CONFIG="1"
DEV="/dev/EG25.AT"
while [ ! -e $DEV ]; do sleep 0.2 ; done
# 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