mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-05-04 07:14:54 -04:00
blue-merle: Fixes shutdown
This commit is contained in:
parent
5d8efbb4e3
commit
b97c0f06eb
3 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue