From df8578e402e7419eef17c6cbab1b7afcd69297b3 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Tue, 17 Oct 2023 09:18:00 +0200 Subject: [PATCH] functions: CHECK_ABORT for v4 MCU --- files/lib/blue-merle/functions.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/files/lib/blue-merle/functions.sh b/files/lib/blue-merle/functions.sh index f504b84..7136c36 100644 --- a/files/lib/blue-merle/functions.sh +++ b/files/lib/blue-merle/functions.sh @@ -61,11 +61,12 @@ 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." - sleep 1 - exit 1 + if [[ "$sim_change_switch" = "off" ]]; then + echo '{ "msg": "SIM change aborted." }' > /dev/ttyS0 + sleep 1 + exit 1 fi }