%general-entities; ]> Bootscripts for CLFS &bootscripts-clfs-version; Bootscripts boot <para>The Bootscripts package contains a set of scripts to start/stop the CLFS system at bootup/shutdown.</para> </sect2> <sect2 role="installation"> <title>Installation of Bootscripts Install the package: make DESTDIR=${CLFS} install-minimal The setclock script reads the time from the hardware clock, also known as the BIOS or the Complementary Metal Oxide Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this script will convert the hardware clock's time to the local time using the /etc/localtime file (which tells the hwclock program which timezone the user is in). There is no way to detect whether or not the hardware clock is set to UTC, so this needs to be configured manually. If you do not know whether or not the hardware clock is set to UTC, you can find out after you have booted the new machine by running the hwclock --localtime --show command, and if necessary editing the /etc/sysconfig/clock script. The worst that will happen if you make a wrong guess here is that the time displayed will be wrong. Change the value of the UTC variable below to a value of (zero) if the hardware clock is not set to UTC time. cat > ${CLFS}/etc/sysconfig/clock << "EOF" # Begin /etc/sysconfig/clock UTC=1 # End /etc/sysconfig/clock EOF Contents of Bootscripts Installed scripts checkfs, cleanfs, console, functions, halt, ifdown, ifup, localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static, swap, sysklogd, template, and udev. Short Descriptions checkfs Checks the integrity of the file systems before they are mounted (with the exception of journal and network based file systems) checkfs cleanfs Removes files that should not be preserved between reboots, such as those in /var/run/ and /var/lock/; it re-creates /var/run/utmp and removes the possibly present /etc/nologin, /fastboot, and /forcefsck files cleanfs console Loads the correct keymap table for the desired keyboard layout; it also sets the screen font console functions Contains common functions, such as error and status checking, that are used by several bootscripts functions halt Halts the system halt ifdown Assists the network script with stopping network devices ifdown ifup Assists the network script with starting network devices ifup localnet Sets up the system's hostname and local loopback device localnet mountfs Mounts all file systems, except ones that are marked noauto or are network based mountfs mountkernfs Mounts virtual kernel file systems, such as proc mountkernfs network Sets up network interfaces, such as network cards, and sets up the default gateway (where applicable) network rc The master run-level control script; it is responsible for running all the other bootscripts one-by-one, in a sequence determined by the name of the symbolic links being processed rc reboot Reboots the system reboot sendsignals Makes sure every process is terminated before the system reboots or halts sendsignals setclock Resets the kernel clock to local time in case the hardware clock is not set to UTC time setclock static Provides the functionality needed to assign a static Internet Protocol (IP) address to a network interface static swap Enables and disables swap files and partitions swap sysklogd Starts and stops the system and kernel log daemons sysklogd template A template to create custom bootscripts for other daemons template udev Starts and stops the Eudev daemon udev