From d42a67c192d2c69561efec5cc1a33c4ce1db1ccd Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 5 Apr 2000 16:34:26 +0000 Subject: Initial revision --- numlock.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 numlock.sh (limited to 'numlock.sh') diff --git a/numlock.sh b/numlock.sh new file mode 100755 index 0000000..39781d1 --- /dev/null +++ b/numlock.sh @@ -0,0 +1,10 @@ +# 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;; + /dev/pts/[0-9]*) [ "XX$DISPLAY" != "XX" ] && [ -x /usr/X11R6/bin/enable_X11_numlock ] && /usr/X11R6/bin/enable_X11_numlock +esac +unset MY_TTY \ No newline at end of file -- cgit v1.2.1