mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 13:55:00 -05:00
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:
parent
ed6856c490
commit
0b4b04c48b
@ -51,6 +51,8 @@ else
|
|||||||
echo "$new_imei" > /tmp/modem.1-1.2/modem-imei
|
echo "$new_imei" > /tmp/modem.1-1.2/modem-imei
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
logger -p notice -t blue-merle-toggle "Changed IMEI from ${old_imei} to ${new_imei}"
|
||||||
|
|
||||||
|
|
||||||
mcu_send_message "The device will shutdown now."
|
mcu_send_message "The device will shutdown now."
|
||||||
sleep 3
|
sleep 3
|
||||||
@ -66,3 +68,4 @@ do
|
|||||||
mcu_send_message "Shutting down... ($i)"
|
mcu_send_message "Shutting down... ($i)"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
logger -p notice -t blue-merle-toggle "Finished with Stage 2"
|
||||||
|
Loading…
Reference in New Issue
Block a user