reboot.xml 484 B

12345678910111213141516171819202122232425262728
  1. <sect1 id="ch07-reboot">
  2. <title>Creating the reboot script</title>
  3. <para>
  4. Create a new file <filename>/etc/init.d/reboot</filename> containing the
  5. following:
  6. </para>
  7. <literallayout>
  8. <userinput>cat &gt; reboot &lt;&lt; "EOF"</userinput>
  9. #!/bin/sh
  10. # Begin /etc/init.d/reboot
  11. #
  12. # Call reboot. See man halt for the meaning of the parameters
  13. #
  14. echo "System reboot in progress..."
  15. /sbin/reboot -d -f -i
  16. # End /etc/init.d/reboot
  17. <userinput>EOF</userinput>
  18. </literallayout>
  19. </sect1>