mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-02 19:10:49 -05:00
web: logging calls to helper binary
This commit is contained in:
parent
958a0ecc99
commit
f7a9494a0c
@ -9,6 +9,8 @@ show_message() {
|
||||
}
|
||||
|
||||
|
||||
logger -p notice -t blue-merle-libexec "Libexec $1"
|
||||
|
||||
if [ "$1" == "read-imei" ]; then
|
||||
imei="$(READ_IMEI)"
|
||||
echo -n $imei
|
||||
@ -35,6 +37,8 @@ elif [ "$1" == "shutdown" ]; then
|
||||
echo '{ "msg": "Shutdowing down..." }' > /dev/ttyS0
|
||||
halt -d 5
|
||||
echo -n "Shutting down"
|
||||
poweroff -d 5
|
||||
logger -p notice -t blue-merle-libexec "Shutting down"
|
||||
|
||||
elif [ "$1" == "write-imei" ]; then
|
||||
new_imei=$2
|
||||
|
Loading…
Reference in New Issue
Block a user