aboutsummaryrefslogtreecommitdiffstats
path: root/numlock.init
diff options
context:
space:
mode:
Diffstat (limited to 'numlock.init')
-rwxr-xr-xnumlock.init14
1 files changed, 7 insertions, 7 deletions
diff --git a/numlock.init b/numlock.init
index f196ff0..0f7e325 100755
--- a/numlock.init
+++ b/numlock.init
@@ -10,13 +10,13 @@
# The following file make bash to relock the numlock key when logging
# since login unlock it.
-#SYSCONF_FILE=/var/lock/subsys/NumLock
-SYSCONF_FILE=/etc/sysconfig/NumLock
+SYSCONF_FILE=/var/lock/subsys/numlock
+#SYSCONF_FILE=/etc/sysconfig/numlock
# See how we were called.
case "$1" in
start)
- echo -n "Starting NumLock: "
+ echo -n "Starting numlock: "
echo_success
echo
touch $SYSCONF_FILE
@@ -27,7 +27,7 @@ case "$1" in
;;
stop)
- echo -n "Disabling NumLocks on ttys: "
+ echo -n "Disabling numlocks on ttys: "
for tty in /dev/tty[1-8]; do
setleds -D -num < $tty
done
@@ -40,9 +40,9 @@ case "$1" in
# echo "dead status as reported is normal since NumLock doesn't need to daemonize"
if [ -f $SYSCONF_FILE ]
then
- echo "NumLock is enabled"
+ echo "numlock is enabled"
else
- echo "NumLock is disabled"
+ echo "numlock is disabled"
fi
;;
restart)
@@ -50,7 +50,7 @@ case "$1" in
$0 start
;;
reload)
- echo -n "Reloading NumLock: "
+ echo -n "Reloading numlock: "
$0 start
echo
;;