#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/numlock,v 1.7 2003/10/14 00:02:21 azarah Exp $


depend() {
	need localmount
}

start() {
	ebegin "Enabling numlock on ttys"
	for tty in $(seq 1 11)
	do
		setleds -D +num < /dev/tty${tty} &>/dev/null
	done
	eend $? "Failed to enable numlock"
}

stop() {
	ebegin "Disabling numlock on ttys"
	for tty in $(seq 1 11)
	do
		setleds -D -num < /dev/tty${tty} &>/dev/null
	done
	eend $? "Failed to disable numlock"
}


# vim:ts=4
