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