* Shaggy Im-erbtham <[EMAIL PROTECTED]> writes:

> I add these lines into my /etc/rc.d/rc.local file
> for t in 1 2 3 4 5 6 7 8 
> do
>       setleds +num < /dev/tty$t > /dev/nul
> done

> I got this off an FAQ page. It works. But don't ask me
> to explain how.

There's nothing all that mystical happening here.  It's just a loop
with 8 iterations.

The first time through the loop the variable "t" gets set to "1" so it
does 
setleds +num < /dev/tty1 > /dev/null

setleds is a binary on your system (man setleds), the "+num" says turn
on the numlock, the "< /dev/tty1" is which tty to set the numlock on,
and the "> /dev/null" says to redirect any output to /dev/null (so
nothing comes up on the console.

The next time through the loop "t" is set to "2" and so on until "t"
is set to "8" then the loop will finish processing and continue on
with anything below the "done" line.



===========================
Want to really learn Linux?
...Install Slackware

-- 
---Regards, Steve Youngs--------Email:-<[EMAIL PROTECTED]>---
|     If Microsoft is the answer, then all I can say is that     |
|               you are asking the wrong question.               |
------------------------------<Don't be a Newbie--Be a Gnu-bie>---

Reply via email to