reboot 611 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. # Begin /etc/init.d/reboot
  3. ### BEGIN INIT INFO
  4. # Provides: reboot
  5. # Required-Start:
  6. # Should-Start:
  7. # Required-Stop:
  8. # Should-Stop:
  9. # Default-Start: 6
  10. # Default-Stop:
  11. # Short-Description: Reboots the system.
  12. # Description: Reboots the System.
  13. # X-LFS-Default-Start:
  14. # X-LFS-Default-Stop: S99
  15. # X-LFS-Provided-By: LFS
  16. ### END INIT INFO
  17. . /lib/lsb/init-functions
  18. case "${1}" in
  19. stop)
  20. log_success_msg "Restarting system..."
  21. reboot -d -f -i
  22. ;;
  23. *)
  24. echo "Usage: ${0} {stop}"
  25. exit 1
  26. ;;
  27. esac
  28. # End /etc/init.d/reboot