我有一張來自 Technologic Systems 的 TS-7200 sbc 卡,運行 Linux,我正在嘗試修改 inittab 文件,以便它以 root 身份登入並自動運行我的應用程式。顯然我在 inittab 檔案中做錯了什麼,因為現在當我重新啟動它時,我得到:
INIT: version 2.85-ts1.00 booting
INIT: /etc/inittab[72]: duplicate ID field "ca"
INIT: cannot execute "/etc/init.d/rcS"
INIT: Entering runlevel: 3
INIT: cannot execute "/etc/init.d/rc"
INIT: Id "gel" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
然後我每 5 分鐘就會收到最後 2 行,但無法按 ctrl-c 退出。 (或 ctrl-d)。
除了重刷卡我想不出什麼辦法了。 (我還不知道該怎麼做)。
這是 inittab 文件:
# Runlevels. The runlevels used by RedHatSystems are:
# 0 - halt (DO_NOT set initdefault to this)
# 1 - Maintaince (single user) mode.
# 2 - Multiuser, no networking support
# 3 - Full multiuser mode
# 4 - No standard. Used for weird/special runlevel
# 5 - Full multiuser with fbdev text console started
# 6 - reboot (DO_NOT set initdefault to this)
#
# Default Runlevel to Go into
dflt:3:initdefault:
# System Startup. Do these process before
# anything else
strt::sysinit:/etc/rc.d/rcS.sysinit
#smpl::sysinit:/path/to/process
# Process to do for each specific Runlevel
#smpl:4:actionkeyword:/path/to/process arguments
r0:0:wait:/etc/rc.d/rcS 0
r1:1:wait:/etc/rc.d/rcS 1
r2:2:wait:/etc/rc.d/rcS 2
r3:3:wait:/etc/rc.d/rcS 3
r4:4:wait:/etc/rc.d/rcS 4
r5:5:wait:/etc/rc.d/rcS 5
r6:6:wait:/etc/rc.d/rcS 6
# Things to run once specified runlevel is entered
#ud::once:/sbin/update
#
# Start console logins on both COM Ports
#
#lgn0:12345:respawn:/sbin/getty -L 115200 ttyAM0
#lgn1:12345:respawn:/sbin/getty -L 115200 ttyAM1
go0:2345:wait:/sbin/mingetty --autologin root ttyAM0 linux
ge1:2345:respawn:/sbin/mingetty ttyAM0 linux
#
# Start Virtual Terminal Logins
#
#vty1:5:respawn:/sbin/getty 38400 vc/0
###vty2::respawn:/sbin/mingetty vc/2
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -r now