From ce771510818677026128dc02b40bab5347416317 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Mon, 16 Oct 2023 16:03:11 +0200 Subject: [PATCH] switch: log action on the toggle It's a bit easier to follow than looking at the generated files. --- files/etc/gl-switch.d/sim.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/etc/gl-switch.d/sim.sh b/files/etc/gl-switch.d/sim.sh index f06278f..1ab62b1 100644 --- a/files/etc/gl-switch.d/sim.sh +++ b/files/etc/gl-switch.d/sim.sh @@ -2,6 +2,8 @@ action=$1 +logger -p notice -t blue-merle-toggle "Called... ${action}" + if [ "$action" = "on" ];then echo "on" > /tmp/sim_change_switch