mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-23 14:19:34 -05:00
15 lines
220 B
Bash
15 lines
220 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
action=$1
|
||
|
|
||
|
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
|
||
|
|