mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-02 19:10:49 -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;;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user