1
0

reboot 569 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. # Begin $RC_BASE/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-Provided-By: LFS
  14. ### END INIT INFO
  15. . /lib/lsb/init-functions
  16. case "${1}" in
  17. stop)
  18. log_success_msg "Restarting system..."
  19. reboot -d -f -i
  20. ;;
  21. *)
  22. echo "Usage: ${0} {stop}"
  23. exit 1
  24. ;;
  25. esac
  26. # End $RC_BASE/init.d/reboot