halt 762 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin halt
  4. #
  5. # Description : Halt Script
  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: halt
  15. # Required-Start:
  16. # Should-Start:
  17. # Required-Stop:
  18. # Should-Stop:
  19. # Default-Start: 0
  20. # Default-Stop:
  21. # Short-Description: Halts the system.
  22. # Description: Halts the System.
  23. # X-LFS-Provided-By: LFS
  24. ### END INIT INFO
  25. case "${1}" in
  26. stop)
  27. halt -d -f -i -p
  28. ;;
  29. *)
  30. echo "Usage: {stop}"
  31. exit 1
  32. ;;
  33. esac
  34. # End halt