mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -05:00
blue-merle: Display a shutdown message before finally halting the system
This commit is contained in:
parent
b15a9390ec
commit
fa11fc45ca
@ -112,7 +112,8 @@ case $answer in
|
|||||||
*) answer=1;;
|
*) answer=1;;
|
||||||
esac
|
esac
|
||||||
if [[ "$answer" -eq 1 ]]; then
|
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
|
else
|
||||||
echo "Resetting modem..."
|
echo "Resetting modem..."
|
||||||
until gl_modem AT AT+QPOWD | grep -q OK
|
until gl_modem AT AT+QPOWD | grep -q OK
|
||||||
|
Loading…
Reference in New Issue
Block a user