方法5.把下面的保存成VBS脚本,执行。" G. t0 x1 ?2 V- B7 V
set WshShell=CreateObject("WScript.shell") + i T' d5 [0 \/ t( g
WshShell.SendKeys"{NUMLOCK}" " I: t7 O0 U! I( z' m Linux ' W/ n6 G. ]) V1.: {' r" ~/ E8 c. L. C3 s
. V, |, j# U3 S7 E5 n
[root@localhost ~]# cat /etc/rc.d/rc.local q/ j6 _# h/ f7 N, ~* ?8 V
#!/bin/sh $ B( R( C7 b6 ~( M* d; X# ; h1 c- h; Z e- U7 x# This script will be executed *after* all the other init scripts. 6 j# y: H: M+ L5 t; b7 P/ a4 b# You can put your own initialization stuff in here if you don't " @" V1 x: E$ f2 {; A7 y# want to do the full Sys V style init stuff. 7 S, Z E# l3 [# D3 s8 wINITTY=/dev/tty[1-8] * V6 j }. @3 H; H% Y
for tty in $INITTY; do * ^* O8 v* x; Esetleds -D +num < $tty 9 j* \8 t/ t" L( S8 W% E$ }4 fdone . r* A+ [& n. y/ dtouch /var/lock/subsys/local8 J. p1 T' f3 m, H8 Q. O
2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll作者: 爱的伤痕 时间: 2008-12-4 09:40