10.5. Creating /etc/inittab

Is the file that specifices how to boot and shutdown a system.

Now we will create the inittab file for use with our system:

cat > ${CLFS}/etc/inittab<< "EOF"
# /etc/inittab

::sysinit:/etc/rc.d/startup
::askfirst:/bin/sh

# Uncomment this if root has a password
#tty1::respawn:/sbin/getty 38400 tty1
#tty2::respawn:/sbin/getty 38400 tty2
#tty3::respawn:/sbin/getty 38400 tty3
#tty4::respawn:/sbin/getty 38400 tty4
#tty5::respawn:/sbin/getty 38400 tty5
#tty6::respawn:/sbin/getty 38400 tty6

# Put a getty on the serial line (for a terminal)
# uncomment this line if your using a serial console
#::respawn:/sbin/getty -L ttyS0 115200 vt100

::shutdown:/etc/rc.d/shutdown
::ctrlaltdel:/sbin/reboot
EOF