S00iucode-tool 407 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #
  3. # Upload microcode into the processor.
  4. #
  5. MICROCODE_DIR="/lib/firmware/intel-ucode"
  6. start() {
  7. printf 'Starting iucode-tool: '
  8. /usr/sbin/iucode_tool -q -k "$MICROCODE_DIR"
  9. status="$?"
  10. if [ "$status" = 0 ]; then
  11. echo "OK"
  12. else
  13. echo "FAIL"
  14. fi
  15. return "$status"
  16. }
  17. case "$1" in
  18. start)
  19. start;;
  20. stop|restart|reload)
  21. ;;
  22. *)
  23. echo "Usage: $0 {start|stop|restart|reload}"
  24. exit 1
  25. esac