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

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 () { CHECK_ABORT () {
sim_change_switch=`cat /tmp/sim_change_switch` sim_change_switch=`cat /tmp/sim_change_switch`
if [[ "$sim_change_switch" = "off" ]]; then if [[ "$sim_change_switch" = "off" ]]; then