aboutsummaryrefslogtreecommitdiffstats
path: root/numlock.sh
blob: fdccb6ff633824bf7bf78321a814e95ab1ad5690 (plain)
1
2
3
4
5
6
7
8
9
# Linux-Mandrake configuration.
#	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 /var/lock/subsys/numlock ] && setleds -D +num < $MY_TTY;;
esac
unset MY_TTY