mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
69474d9427
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@193 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
43 lines
861 B
XML
43 lines
861 B
XML
<sect2><title>Configuring Sysvinit</title>
|
|
|
|
<para>
|
|
Create a new file <filename>/etc/inittab</filename> by running the
|
|
following:
|
|
</para>
|
|
|
|
<literallayout>
|
|
|
|
<userinput>cat > /etc/inittab << "EOF"</userinput>
|
|
# Begin /etc/inittab
|
|
|
|
id:3:initdefault:
|
|
|
|
si::sysinit:/etc/init.d/rcS
|
|
|
|
l0:0:wait:/etc/init.d/rc 0
|
|
l1:S1:wait:/etc/init.d/rc 1
|
|
l2:2:wait:/etc/init.d/rc 2
|
|
l3:3:wait:/etc/init.d/rc 3
|
|
l4:4:wait:/etc/init.d/rc 4
|
|
l5:5:wait:/etc/init.d/rc 5
|
|
l6:6:wait:/etc/init.d/rc 6
|
|
|
|
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
|
|
|
su:S016:respawn:/sbin/sulogin
|
|
|
|
1:2345:respawn:/sbin/agetty tty1 9600
|
|
2:2345:respawn:/sbin/agetty tty2 9600
|
|
3:2345:respawn:/sbin/agetty tty3 9600
|
|
4:2345:respawn:/sbin/agetty tty4 9600
|
|
5:2345:respawn:/sbin/agetty tty5 9600
|
|
6:2345:respawn:/sbin/agetty tty6 9600
|
|
|
|
# End /etc/inittab
|
|
<userinput>EOF</userinput>
|
|
|
|
</literallayout>
|
|
|
|
</sect2>
|
|
|