diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-12-03 21:28:45 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-12-03 21:28:45 +0000 |
commit | 02627cc7c035aa7d67e9456d0751f47caef989aa (patch) | |
tree | 0222880ae550703d3240f729b0247e040322a3ed /numlock.sh | |
parent | b5d224ff52a0c9cb560d76cf5da2010bf4edca2d (diff) | |
download | numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar.gz numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar.bz2 numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.tar.xz numlock-02627cc7c035aa7d67e9456d0751f47caef989aa.zip |
add nl man page, test the real lock file /var/lock/subsys/numlock (from David MacKenzie, #12558)
Diffstat (limited to 'numlock.sh')
-rwxr-xr-x | numlock.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,9 +1,9 @@ # 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 +# ReLock the NumLock key if /etc/rc.d/init.d/numlock has been run. +# This is needed because login resets the tty. MY_TTY=`tty` case $MY_TTY in - /dev/tty[0-9]*) [ -f /etc/sysconfig/numlock ] && setleds -D +num < $MY_TTY;; + /dev/tty[0-9]*) [ -f /var/lock/subsys/numlock ] && setleds -D +num < $MY_TTY;; esac -unset MY_TTY
\ No newline at end of file +unset MY_TTY |