From 206f7096e0b4c155b77a64b91990a5d8c91c9764 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 23 Nov 2007 22:23:20 +0000 Subject: Fix var names --- init.d.Linux/numlock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init.d.Linux/numlock') diff --git a/init.d.Linux/numlock b/init.d.Linux/numlock index 7bbd1314..5b2bca99 100755 --- a/init.d.Linux/numlock +++ b/init.d.Linux/numlock @@ -26,6 +26,8 @@ description="Turns numlock on for the consoles." +ttyn=${rc_tty_number:-${RC_TTY_NUMBER}:-12} + depend() { need localmount } @@ -36,7 +38,7 @@ _setleds() { local dev=/dev/tty t= i=1 retval=0 [ -d /dev/vc ] && dev=/dev/vc/ - while [ ${i} -le ${RC_TTY_NUMBER:-11} ] ; do + while [ ${i} -le ${ttyn} ] ; do setleds -D "$1"num < ${dev}${i} || retval=1 i=$((${i} + 1)) done -- cgit v1.2.3