Set the keyboard leds
From Linux Shell Scripting Tutorial - A Beginner's handbook
The setleds command can be used display and changes status of NumLock, CapsLock and ScrollLock using a shell script. See how to: