aboutsummaryrefslogtreecommitdiff
path: root/init.d/numlock.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/numlock.in')
-rw-r--r--init.d/numlock.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/init.d/numlock.in b/init.d/numlock.in
index 06adca7f..762f4ef3 100644
--- a/init.d/numlock.in
+++ b/init.d/numlock.in
@@ -1,5 +1,5 @@
#!@PREFIX@/sbin/runscript
-# Copyright 2007-2008 Roy Marples <roy@marples.name>
+# Copyright 2007-2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
description="Turns numlock on for the consoles."
@@ -19,12 +19,12 @@ _setleds()
local dev=/dev/tty t= i=1 retval=0
[ -d /dev/vc ] && dev=/dev/vc/
- while [ ${i} -le ${ttyn} ]; do
- setleds -D "$1"num < ${dev}${i} || retval=1
- i=$((${i} + 1))
+ while [ $i -le $ttyn ]; do
+ setleds -D "$1"num < $dev$i || retval=1
+ i=$(($i + 1))
done
- return ${retval}
+ return $retval
}
start()