mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 05:44:59 -05:00
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:
parent
c8634591b2
commit
7b64f3aa9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user