switch: log in stage2

So that we can notice whether our script has successfully run.
You can read the log with something like
logread -l 10000 -e blue
This commit is contained in:
Tobias Mueller 2023-10-17 15:16:49 +02:00
parent ed6856c490
commit 0b4b04c48b
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,8 @@ else
echo "$new_imei" > /tmp/modem.1-1.2/modem-imei
fi
logger -p notice -t blue-merle-toggle "Changed IMEI from ${old_imei} to ${new_imei}"
mcu_send_message "The device will shutdown now."
sleep 3
@ -66,3 +68,4 @@ do
mcu_send_message "Shutting down... ($i)"
sleep 1
done
logger -p notice -t blue-merle-toggle "Finished with Stage 2"