文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>一个关于打开数字键盘的程序

一个关于打开数字键盘的程序

时间:2007-01-18  来源:qing

http://www.chinalinuxpub.com/showthread.php?t=35166

# Is there an rc directory for this new runlevel?
if [ -d /etc/rc.d/rc$runlevel.d ]; then
# First, run the KILL scripts.
for i in /etc/rc.d/rc$runlevel.d/K*; do
# Check if the script is there.
[ ! -f $i ] && continue

# Check if the subsystem is already up.
subsys=${i#/etc/rc.d/rc$runlevel.d/K??}
[ ! -f /var/lock/subsys/$subsys ] &&
[ ! -f /var/lock/subsys/${subsys}.init ] && continue

# Bring the subsystem down.
$i stop
done

# Now run the START scripts.
for i in /etc/rc.d/rc$runlevel.d/S*; do
# Check if the script is there.
[ ! -f $i ] && continue

# Check if the subsystem is already up.
subsys=${i#/etc/rc.d/rc$runlevel.d/S??}
[ -f /var/lock/subsys/$subsys ] ||
[ -f /var/lock/subsys/${subsys}.init ] && continue

# Bring the subsystem up.
$i start
done

# Turn the NumLock key on at startup
INITTY=/dev/tty[1-8]
for tty in $INITTY; do
setleds -D +num < $tty
done
fi
相关阅读 更多 +
排行榜 更多 +
儿童学英语

儿童学英语

学习教育 下载
今天开始生存

今天开始生存

动作格斗 下载
飞碟快闪

飞碟快闪

动作格斗 下载