Click to See Complete Forum and Search --> : another num lock question


phreakout
12-23-2000, 09:56 AM
alright, i know there has numerous articles written on this, quite a few of which are KDE specific, but other are not so. I have failed to understand them (or more specifically, how the answer seems irrelevant to my system setup.)

many answers i have found on google search seems to be along this line:

Use the setleds program, for example (in /etc/rc.local or one of the /etc/rc.d/* files):


for t in 1 2 3 4 5 6 7 8
do
setleds +num < /dev/tty$t > /dev/null
done

I have checked my rc.local file and some other files under rc.d, and I'm still clueless as to where this patch is supposed to go ...

I am running Redhat 7.0, using Gnome. I do not use KDE.

Any insight will be most appreciated.

yogee
12-24-2000, 08:53 PM
Are you talking about when the machine boots, adding a script to turn num locks on? I too seek the answer to that question if that is what you are asking and i might add, im using redhat 7 also. Anyone...

------------------
Screw this. Come over and fix this thing.
Oh, this aint Micrsoft tech support?

mdwatts
12-25-2000, 08:45 PM
I would think you could create a script with the text above

#! /bin/sh

for t in ....
...
....

Save as for example setleds_script

chmod +x setleds_script

Add to your startup file rc.local using the full path to the script

/sbin/setleds_script (or wherever you put it)