halt 550 B

123456789101112131415161718192021222324252627282930
  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-Provided-By: LFS
  14. ### END INIT INFO
  15. . /lib/lsb/init-functions
  16. case "${1}" in
  17. stop)
  18. log_success_msg "Halting System..."
  19. halt -d -f -i -p
  20. ;;
  21. *)
  22. echo "Usage: {stop}"
  23. exit 1
  24. ;;
  25. esac
  26. # End $RC_BASE/init.d/halt