qubes-core-early 795 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. #
  3. # chkconfig: 345 84 84
  4. # description: Executes early necessary Qubes core scripts at VM boot
  5. #
  6. # Source function library.
  7. # shellcheck disable=SC1091
  8. . /etc/rc.d/init.d/functions
  9. # Source Qubes library.
  10. # shellcheck source=init/functions
  11. . /usr/lib/qubes/init/functions
  12. start()
  13. {
  14. have_qubesdb || return
  15. echo -n $"Setting up Qubes persistent file systems:"
  16. # shellcheck disable=SC2015
  17. /usr/lib/qubes/init/mount-dirs.sh && success || failure
  18. echo
  19. echo -n $"Executing Qubes random seed scripts:"
  20. # shellcheck disable=SC2015
  21. /usr/lib/qubes/init/qubes-random-seed.sh && success || failure
  22. echo
  23. }
  24. stop()
  25. {
  26. return 0
  27. }
  28. case "$1" in
  29. start)
  30. start
  31. ;;
  32. stop)
  33. stop
  34. ;;
  35. *)
  36. echo $"Usage: $0 {start|stop}"
  37. exit 3
  38. ;;
  39. esac
  40. # shellcheck disable=SC2086
  41. exit $RETVAL