2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch07-reboot">
|
|
|
|
<title>Creating the reboot script</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Create the <filename>/etc/init.d/reboot</filename> script by running the
|
|
|
|
following command:</para>
|
|
|
|
|
2001-08-09 17:43:10 +01:00
|
|
|
<para><screen><userinput>cat > /etc/init.d/reboot << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
#!/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
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>EOF</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|