11.2. CLFS-Bootscripts-0.2

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc2-Sparc64-Pure64

### Chapter 11. Setting Up System Bootscripts

- Prev

  Setting Up System Bootscripts

- Next

  Udev Rules-0.1-07062006

- Up.
- Home

# 11.2. CLFS-Bootscripts-0.2

The CLFS-Bootscripts package contains a set of scripts to start/stop the CLFS system at bootup/shutdown.

## 11.2.1. Installation of CLFS-Bootscripts

Install the package:

    make install

## 11.2.2. Contents of CLFS-Bootscripts

Installed scripts: checkfs, cleanfs, console, functions, halt, ifdown, ifup, localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static, swap, sysklogd, and template.

### Short Descriptions

checkfs | Checks the integrity of the file systems before they are mounted (with the exception of journal and network based file systems)
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
console | Loads the correct keymap table for the desired keyboard layout; it also sets the screen font
functions | Contains common functions, such as error and status checking, that are used by several bootscripts
halt | Halts the system
ifdown | Assists the network script with stopping network devices
ifup | Assists the network script with starting network devices
localnet | Sets up the system's hostname and local loopback device
mountfs | Mounts all file systems, except ones that are marked noauto or are network based
mountkernfs | Mounts virtual kernel file systems, such as `proc`
network | Sets up network interfaces, such as network cards, and sets up the default gateway (where applicable)
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
reboot | Reboots the system
sendsignals | Makes sure every process is terminated before the system reboots or halts
setclock | Resets the kernel clock to local time in case the hardware clock is not set to UTC time
static | Provides the functionality needed to assign a static Internet Protocol (IP) address to a network interface
swap | Enables and disables swap files and partitions
sysklogd | Starts and stops the system and kernel log daemons
template | A template to create custom bootscripts for other daemons

- Prev

  Setting Up System Bootscripts

- Next

  Udev Rules-0.1-07062006

- Up.
- Home.