switch: log action on the toggle

It's a bit easier to follow than looking at the generated files.
This commit is contained in:
Tobias Mueller 2023-10-16 16:03:11 +02:00
parent 55a6f8d10f
commit ce77151081

View File

@ -2,6 +2,8 @@
action=$1 action=$1
logger -p notice -t blue-merle-toggle "Called... ${action}"
if [ "$action" = "on" ];then if [ "$action" = "on" ];then
echo "on" > /tmp/sim_change_switch echo "on" > /tmp/sim_change_switch