nsbin/leds2
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

31 lines
565 B
Text
Executable file

PROG="setleds"
kbset()
{
if [ $# -ne 2 ]; then return; fi
param=$1
case $2 in
on)
$PROG +$param ;;
off)
$PROG -$param ;;
esac
}
keyb_sequence()
{
kbset num off; kbset caps off; kbset scroll off; sleep 1
kbset num on;kbset scroll on;sleep 1
kbset num off;kbset scroll off;kbset caps on;sleep 1
kbset caps off; kbset num on; sleep 1;
kbset num off; kbset caps on; sleep 1;
kbset caps off; kbset scroll on; sleep 1;
kbset caps on; kbset scroll off; sleep 1;
kbset num on; kbset caps off; sleep 1;
}
while [ true ]; do keyb_sequence; done