%general-entities; ]> Sysvinit-&sysvinit-version; Sysvinit boot <para>The Sysvinit package contains programs for controlling the startup, running, and shutdown of the system.</para> </sect2> <sect2 role="installation"> <title>Installation of Sysvinit Apply a patch to prevent installation of unneeded programs, and allow Sysvinit to be installed in /tools: patch -Np1 -i ../sysvinit-&sysvinit-version;-tools_updates-1.patch Compile the package: make -C src clobber make -C src CC="${CC}" Install the package: make -C src ROOT=/tools install Configuring Sysvinit Sysvinit boot, configuring /etc/inittab Create a new file /tools/etc/inittab by running the following: cat > /tools/etc/inittab << "EOF" # Begin /tools/etc/inittab id:3:initdefault: si::sysinit:/tools/etc/rc.d/init.d/rc sysinit l0:0:wait:/tools/etc/rc.d/init.d/rc 0 l1:S1:wait:/tools/etc/rc.d/init.d/rc 1 l2:2:wait:/tools/etc/rc.d/init.d/rc 2 l3:3:wait:/tools/etc/rc.d/init.d/rc 3 l4:4:wait:/tools/etc/rc.d/init.d/rc 4 l5:5:wait:/tools/etc/rc.d/init.d/rc 5 l6:6:wait:/tools/etc/rc.d/init.d/rc 6 ca:12345:ctrlaltdel:/tools/sbin/shutdown -t1 -a -r now su:S016:once:/tools/sbin/sulogin EOF The following command adds the standard virtual terminals to /tools/etc/inittab. If your system only has a serial console skip the following command: cat >> /tools/etc/inittab << "EOF" 1:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty1 9600 2:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty2 9600 3:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty3 9600 4:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty4 9600 5:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty5 9600 6:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty6 9600 EOF If your system has a serial console, run the following command to add the entry to /tools/etc/inittab. cat >> /tools/etc/inittab << "EOF" c0:12345:respawn:/tools/sbin/agetty --noclear 115200 ttyS0 vt100 EOF Finally, add the end line to /tools/etc/inittab. cat >> /tools/etc/inittab << "EOF" # End /tools/etc/inittab EOF The -I '\033(K' option tells agetty to send this escape sequence to the terminal before doing anything else. This escape sequence switches the console character set to a user-defined one, which can be modified by running the setfont program. Sending this escape sequence is necessary for people who use non-ISO 8859-1 screen fonts, but it does not affect native English speakers. <para>Details on this package are located in <xref linkend="contents-sysvinit" role="."/></para> </sect2> </sect1>