functions: CHECK_ABORT for v4 MCU

This commit is contained in:
Tobias Mueller 2023-10-17 09:18:00 +02:00
parent 11a8afd0a9
commit df8578e402

View File

@ -61,10 +61,11 @@ READ_IMSI () {
echo $imsi
}
CHECK_ABORT () {
sim_change_switch=`cat /tmp/sim_change_switch`
if [[ "$sim_change_switch" = "off" ]]; then
e750-mcu "SIM change aborted."
echo '{ "msg": "SIM change aborted." }' > /dev/ttyS0
sleep 1
exit 1
fi