Re: NumLoc "ON" at startup
R_at_LF
Date: 08/13/03
- Next message: Alan Connor: "Re: Telnet not working remotely"
- Previous message: Andreas Janssen: "Re: Windoze 2k Partitions"
- Next in thread: Doug Laidlaw: "Re: NumLoc "ON" at startup"
- Reply: Doug Laidlaw: "Re: NumLoc "ON" at startup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 13 Aug 2003 00:53:06 +0200
On Fri, 25 Jul 2003 15:02:08 +0000, Bit Twister wrote:
> On Fri, 25 Jul 2003 09:15:15 -0500, AAW wrote:
>> R@LF wrote:
>>
>>> I am going in circles and cannot figure out how I can get my NumLoc on
>>> at startup. I use RH9 and XFree86 4.3.0-2
>>> I am not into kernel building ... there should be another simpler
>>> way(?) to do this.
>>>
>>> Rolf
>>
>> Below is Mandrake's /etc/init.d/numlock. Double check file locations,
>> word wrap, etc., but it ought to be adaptable to Red Hat.
>>
>> ---------<CUT HERE>---------
>> #!/bin/sh
>> #
>> # Startup script for NumLock
>> #
>> # description: Locks NumLock key at init runlevel change
>> # chkconfig: 345 85 15
>>
>> # Source function library.
>> . /etc/rc.d/init.d/functions
>>
>> # The following file make bash to relock the numlock key when
>> logging
>> # since login unlock it.
>> SYSCONF_FILE=/var/lock/subsys/numlock
[snip]
[snip]
>> ---------<CUT HERE>---------
>
>
> Mandrake also has this file in /etc/profile.d/numlock.sh
>
> -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----
> # Linux-Mandrake configuration.
> # ReLock the NumLock key if /etc/rc.d/init.d/numlock has been runned
> # This is needed as login reset the tty
>
> MY_TTY=`tty`
> case $MY_TTY in
> /dev/tty[0-9]*) [ -f /etc/sysconfig/numlock ] && setleds -D +num < $MY_TTY;;
> esac
> -----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----
Well.... I got the startup script working
You forgot to tell me that I should do a "chkconfig numlock" to get it
started.
Good thing too, now I know how things work with the script-stuff...cool.
Now the numloc goes off again when I start X (Gnome).
When I logout of X, the numlock comes ON again.
I did not do anything special with the 2nd script (Linux-Mandrake config).
Does that has an activation like "chkconfig" too ?
Is it part of another script ?
Note, that I changed the path of /etc/sysconfig/numlock to
/var/lock/subsys/numlock to match my file locations.
Do I miss something ?
Rolf
- Next message: Alan Connor: "Re: Telnet not working remotely"
- Previous message: Andreas Janssen: "Re: Windoze 2k Partitions"
- Next in thread: Doug Laidlaw: "Re: NumLoc "ON" at startup"
- Reply: Doug Laidlaw: "Re: NumLoc "ON" at startup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]