aboutsummaryrefslogtreecommitdiffstats
path: root/numlock.sh
blob: 92a896298284435621dab3edf314254c4c799ba8 (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 runned
#	This is needed as login reset the tty

MY_TTY=`tty`
case $MY_TTY in
    /dev/tty[0-9]*)	[ -f /etc/sysconfig/numlock ] && setleds -D +num < $MY_TTY;;
esac
unset MY_TTY