NumLock on with boot? How?

Ajai Khattri ajai at bway.net
Thu Jun 10 17:58:05 UTC 2004


On Thu, 10 Jun 2004, Rick Stevens wrote:

> That's normally a BIOS setting.  I don't know of a way to force it from
> the system.

Gentoo comes with a script to do this (/etc/init.d/numlock). Looking at
the script I see it runs setleds. Checking on a RH9 box I see that setleds
is included. So maybe you can craft together an init script to do
something like:

        setleds -D +num < /dev/tty1

Or for all virt consoles:

        for tty in $(seq 1 6)
        do
                        setleds -D +num < /dev/${tty} &>/dev/null
        done

-- 
Aj.
Sys. Admin / Developer





More information about the Redhat-install-list mailing list