NumLock自动启用(包括控制台和X)
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=42319
----------------------------------
#! /bin/sh
# /etc/init.d/ljev: set the users EV.
#setleds用于控制台启用NumLock
PATH=/bin:/usr/bin:/sbin:/usr/sbin
INITTY=/dev/tty[1-6]
for tty in $INITTY; do
setleds -D +num < $tty
done
#case "$1" in
# start)
# ;;
# stop)
# ;;
# *)
# exit 1
#esac
exit 0
----------------------------------
# /etc/X11/Xsession.d/55numlockx
# In the script that called this, set -e has been set. Errors in any
# command will abort the entire script and X won't start. By putting
# this part in a subshell, any errors will abort the subshell - which
# we want, in case numlockx fails.
# The 'true' at the end ensures that the entire script will never end
# with an error code, even if there was an error.
# Ariel Shkedi <asdebian@dsgml.com>
# numlockx用于X启用NumLock
(
test -x /usr/bin/X11/numlockx && /usr/bin/X11/numlockx on
)
true