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,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
} }