blue-merle: Display a shutdown message before finally halting the system

This commit is contained in:
Tobias Mueller 2023-10-16 16:25:45 +02:00
parent b15a9390ec
commit fa11fc45ca
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ case $answer in
*) answer=1;;
esac
if [[ "$answer" -eq 1 ]]; then
echo {\"poweroff\": \"1\"} >/tmp/mcu_message && sleep 0.5 && killall -17 e750-mcu
echo '{ "msg": "Shutting down..." }' > /dev/ttyS0
halt -d 5
else
echo "Resetting modem..."
until gl_modem AT AT+QPOWD | grep -q OK