aboutsummaryrefslogtreecommitdiffstats
path: root/numlock.sh
blob: 50f60bd37fe445f0ef1419fc64e5cc93d7ac41ef (plain)
1
2
3
4
5
6
7
8
9
# Mageia 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