mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-10-01 04:55:39 +00:00
ce77151081
It's a bit easier to follow than looking at the generated files.
17 lines
282 B
Bash
17 lines
282 B
Bash
#!/bin/sh
|
|
|
|
action=$1
|
|
|
|
logger -p notice -t blue-merle-toggle "Called... ${action}"
|
|
|
|
if [ "$action" = "on" ];then
|
|
echo "on" > /tmp/sim_change_switch
|
|
|
|
elif [ "$action" = "off" ];then
|
|
echo "off" > /tmp/sim_change_switch
|
|
else
|
|
echo "off" > /tmp/sim_change_switch
|
|
fi
|
|
sleep 1
|
|
|