mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 13:55:00 -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 () {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user