From f7a9494a0c8fbf97151352fb2048eaa1209149c0 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Tue, 17 Oct 2023 16:54:18 +0200 Subject: [PATCH] web: logging calls to helper binary --- files/usr/libexec/blue-merle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/usr/libexec/blue-merle b/files/usr/libexec/blue-merle index 46a2a18..0ef4488 100755 --- a/files/usr/libexec/blue-merle +++ b/files/usr/libexec/blue-merle @@ -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