Linux From Scratch
Prev | Chapter 7. Creating system boot scripts | Next

# Creating the halt script

A new file `/etc/init.d/halt` is created containing the following:

`cat > halt << "EOF"`
#!/bin/sh
# Begin /etc/init.d/halt
#
# Call halt. See man halt for the meaning of the parameters
#
/sbin/halt -d -f -i -p
# End /etc/init.d/halt
`EOF`

Prev | Home | Next
Creating the checkfs script | Up | Creating the loadkeys script