blue-merle: Fixes shutdown

This commit is contained in:
Jakob Rieck 2023-10-18 15:48:11 +02:00
parent 5d8efbb4e3
commit b97c0f06eb
3 changed files with 7 additions and 5 deletions

View file

@ -34,11 +34,10 @@ elif [ "$1" == "shutdown-modem" ]; then
exec gl_modem AT AT+CFUN=4
elif [ "$1" == "shutdown" ]; then
echo '{ "msg": "Shutdowing down..." }' > /dev/ttyS0
halt -d 5
show_message "Shutting down..."
echo -n "Shutting down"
poweroff -d 5
logger -p notice -t blue-merle-libexec "Shutting down"
echo '{ "poweroff": "1" } > /dev/ttyS0
elif [ "$1" == "write-imei" ]; then
new_imei=$2