functions: provide SET IMEI capability from shellscripts

It doesn't work for me but I also haven't tried very hard as we do not
migrate off the Python script now.
This commit is contained in:
Tobias Mueller 2023-10-18 10:35:39 +02:00
parent c8634591b2
commit 7b64f3aa9b
1 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,16 @@ READ_IMSI () {
}
SET_IMEI() {
imei="$1"
if [[ ${#imei} -eq 14 ]]; then
gl_modem AT AT+EGMR=1,7,${imei}
else
echo "IMEI is ${#imei} not 14 characters long"
fi
}
CHECK_ABORT () {
sim_change_switch=`cat /tmp/sim_change_switch`
if [[ "$sim_change_switch" = "off" ]]; then