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

# Creating the reboot script

Create a new file `/etc/init.d/reboot` containing the following:

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

Prev | Home | Next
Creating the mountfs script | Up | Creating the sendsignals script