Users Guide
添加新行以在 COM2 串行端口上配置 agetty:
co:2345:respawn:/sbin/agetty -h -L 57600 ttyS1 ansi
表 5-3 显示具有新行的示例文件。
表 5-3.示例文件:/etc/innitab
按照以下说明编辑文件 /etc/securetty:
添加新行,带有 COM2 的串行 tty 名称:
ttyS1
表 5-4 显示具有新行的示例文件。
表 5-4.示例文件:/etc/securetty
#
#inittabThisfiledescribeshowtheINITprocessshouldsetup(本文件描述了 INIT 进程应如何设立)
#the system in a certain run-level (在某个运行级别的系统。)
#
#Author:MiquelvanSmoorenburg(作者:Miquel van Smoorenburg )
#ModifiedforRHSLinuxbyMarcEwingandDonnieBarnes(经 Marc Ewing 和 Donnie Barnes 修改用于 RHS Linux)
#
#Defaultrunlevel.TherunlevelsusedbyRHSare:(默认运行级别。RHS 使用的运行级别有are:)
#0 - halt (Do NOT set initdefault to this) (终止(请勿将此设置为 initdefault))
#1 - Single user mode (单用户模式)
#2 - Multiuser, without NFS (The same as 3, if you do not have (多用户,没有NFS(和 3 相同,如果你没有)
#networking) (互联网))
#3 - Full multiuser mode (完全多用户模式)
#4 - unused (未使用)
#5 - X11 (X11)
#6- reboot (Do NOT set initdefault to this) (重新启动(请勿将此设置为 initdefault))
#
id:3:initdefault:
#Systeminitialization.(系统初始化。)
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
#Thingstorunineveryrunlevel.(在每个运行级别运行的程序。)
ud::once:/sbin/update
#TrapCTRL-ALT-DELETE (陷阱 CTRL-ALT-删除)
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
#WhenourUPStellsuspowerhasfailed,assumewehaveafew(当 UPS 告诉我们电源故障时, 我们还有 )
#minutes of power left.Schedule a shutdown for 2 minutes from now. (分钟的电量剩余。请准备从现在起 2 分钟后关机。)
#This does, of course, assume you have power installed and your (这当然基于您安装有电源,并连接有 )
#UPS is connected and working correctly. (UPS 且工作正常。)
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down" ("电源故障; 系统正在关机")
#If power was restored before the shutdown kicked in, cancel it. (如果关机前电源恢复,请取消它。)
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
#Rungettysinstandardrunlevels(在标准运行级别运行 gettys)
co:2345:respawn:/sbin/agetty -h -L 57600 ttyS1 ansi
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
#Runxdminrunlevel5(在运行级别 5 运行 xdm)
#xdmisnowaseparateservice(xdm现在是一个独立的服务)
x:5:respawn:/etc/X11/prefdm -nodaemon
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1