swee 修订了这个 Gist 4 months ago. 转到此修订
1 file changed, 22 insertions
inittab(文件已创建)
| @@ -0,0 +1,22 @@ | |||
| 1 | + | # /etc/inittab | |
| 2 | + | ||
| 3 | + | ::sysinit:/sbin/openrc sysinit | |
| 4 | + | ::sysinit:/sbin/openrc boot | |
| 5 | + | ::wait:/sbin/openrc default | |
| 6 | + | ||
| 7 | + | # Set up a couple of getty's | |
| 8 | + | tty1::respawn:/sbin/agetty tty1 linux | |
| 9 | + | tty2::respawn:/sbin/agetty --autologin opengist tty2 linux | |
| 10 | + | tty3::respawn:/sbin/getty 38400 tty3 | |
| 11 | + | tty4::respawn:/sbin/getty 38400 tty4 | |
| 12 | + | tty5::respawn:/sbin/getty 38400 tty5 | |
| 13 | + | tty6::respawn:/sbin/getty 38400 tty6 | |
| 14 | + | ||
| 15 | + | # Put a getty on the serial port | |
| 16 | + | #ttyS0::respawn:/sbin/getty -L 115200 ttyS0 vt100 | |
| 17 | + | ||
| 18 | + | # Stuff to do for the 3-finger salute | |
| 19 | + | ::ctrlaltdel:/sbin/reboot | |
| 20 | + | ||
| 21 | + | # Stuff to do before rebooting | |
| 22 | + | ::shutdown:/sbin/openrc shutdown | |
上一页
下一页