mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -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
|
if [ "$1" == "read-imei" ]; then
|
||||||
imei="$(READ_IMEI)"
|
imei="$(READ_IMEI)"
|
||||||
echo -n $imei
|
echo -n $imei
|
||||||
@ -35,6 +37,8 @@ elif [ "$1" == "shutdown" ]; then
|
|||||||
echo '{ "msg": "Shutdowing down..." }' > /dev/ttyS0
|
echo '{ "msg": "Shutdowing down..." }' > /dev/ttyS0
|
||||||
halt -d 5
|
halt -d 5
|
||||||
echo -n "Shutting down"
|
echo -n "Shutting down"
|
||||||
|
poweroff -d 5
|
||||||
|
logger -p notice -t blue-merle-libexec "Shutting down"
|
||||||
|
|
||||||
elif [ "$1" == "write-imei" ]; then
|
elif [ "$1" == "write-imei" ]; then
|
||||||
new_imei=$2
|
new_imei=$2
|
||||||
|
Loading…
Reference in New Issue
Block a user