halt 483 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. ########################################################################
  3. # Begin $rc_base/init.d/halt
  4. #
  5. # Description : Halt Script
  6. #
  7. # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
  8. #
  9. # Version : 00.00
  10. #
  11. # Notes :
  12. #
  13. ########################################################################
  14. . /etc/sysconfig/rc
  15. . ${rc_functions}
  16. case "${1}" in
  17. stop)
  18. halt -d -f -i -p
  19. ;;
  20. *)
  21. echo "Usage: {stop}"
  22. exit 1
  23. ;;
  24. esac
  25. # End $rc_base/init.d/halt