1
0

reboot 842 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin reboot
  4. #
  5. # Description : Reboot Scripts
  6. #
  7. # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
  8. # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
  9. #
  10. # Version : LFS 7.0
  11. #
  12. ########################################################################
  13. ### BEGIN INIT INFO
  14. # Provides: reboot
  15. # Required-Start:
  16. # Should-Start:
  17. # Required-Stop:
  18. # Should-Stop:
  19. # Default-Start: 6
  20. # Default-Stop:
  21. # Short-Description: Reboots the system.
  22. # Description: Reboots the System.
  23. # X-LFS-Provided-By: LFS
  24. ### END INIT INFO
  25. . /lib/boot/functions
  26. case "${1}" in
  27. stop)
  28. boot_mesg "Restarting system..."
  29. reboot -d -f -i
  30. ;;
  31. *)
  32. echo "Usage: ${0} {stop}"
  33. exit 1
  34. ;;
  35. esac
  36. # End reboot