Chapter 7. Creating system boot scripts

Table of Contents
Introduction
Creating directories
Creating the rc script
Creating the rcS script
Creating the functions script
Creating the checkfs script
Creating the halt script
Creating the loadkeys script
Creating the mountfs script
Creating the reboot script
Creating the sendsignals script
Creating the setclock script
Creating the sysklogd script
Creating the template script
Creating the umountfs script
Setting up symlinks and permissions
Creating the /etc/fstab file

Introduction

This chapter will create the necessary scripts that are run at boottime. These scripts perform tasks such as remounting the root file system mounted read-only by the kernel into read-write mode, activiating the swap partition(s), running a check on the root file system to make sure it's intact and starting the daemons that the system uses.

If you rather download these scripts than create them yourself you can get them from http://download.linuxfromscratch.org/bootscripts/ or ftp://download.linuxfromscratch.org/bootscritps/