mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -05:00
functions: CHECK_ABORT for v4 MCU
This commit is contained in:
parent
11a8afd0a9
commit
df8578e402
@ -61,11 +61,12 @@ READ_IMSI () {
|
|||||||
echo $imsi
|
echo $imsi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
e750-mcu "SIM change aborted."
|
echo '{ "msg": "SIM change aborted." }' > /dev/ttyS0
|
||||||
sleep 1
|
sleep 1
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user