aboutsummaryrefslogtreecommitdiffstats
path: root/numlock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'numlock.sh')
-rwxr-xr-xnumlock.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/numlock.sh b/numlock.sh
index 92a8962..fdccb6f 100755
--- a/numlock.sh
+++ b/numlock.sh
@@ -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