halt 596 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. # Begin $RC_BASE/init.d/halt
  3. ### BEGIN INIT INFO
  4. # Provides: halt
  5. # Required-Start:
  6. # Should-Start:
  7. # Required-Stop:
  8. # Should-Stop:
  9. # Default-Start: 0
  10. # Default-Stop:
  11. # Short-Description: Halts the system.
  12. # Description: Halts 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 "Halting System..."
  21. halt -d -f -i -p
  22. ;;
  23. *)
  24. echo "Usage: {stop}"
  25. exit 1
  26. ;;
  27. esac
  28. # End /etc/init.d/halt