Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (18 sloc) 335 Bytes
#!/bin/bash
/show/description "Check if a user is connected to SSH"
/show/listecho "Red led connected" $WARN
lastState=9
while [ 1 ]
do
#/show/userConnected
state=$(/show/userConnected)
if [ $lastState -ne $state ];then
lastState=$state
if [ $state -eq 0 ];then
/do/2b3l/redOff
else
/do/2b3l/redOn
fi
fi
sleep 1
done