qubes-core-early 732 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. . /etc/rc.d/init.d/functions
  8. # Source Qubes library.
  9. . /usr/lib/qubes/init/functions
  10. start()
  11. {
  12. have_qubesdb || return
  13. echo -n $"Setting up Qubes persistent file systems:"
  14. # shellcheck disable=SC2015
  15. /usr/lib/qubes/init/mount-dirs.sh && success || failure
  16. echo
  17. echo -n $"Executing Qubes random seed scripts:"
  18. # shellcheck disable=SC2015
  19. /usr/lib/qubes/init/qubes-random-seed.sh && success || failure
  20. echo
  21. }
  22. stop()
  23. {
  24. return 0
  25. }
  26. case "$1" in
  27. start)
  28. start
  29. ;;
  30. stop)
  31. stop
  32. ;;
  33. *)
  34. echo $"Usage: $0 {start|stop}"
  35. exit 3
  36. ;;
  37. esac
  38. # shellcheck disable=SC2086
  39. exit $RETVAL