qubes-core-early 640 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /usr/lib/qubes/init/mount-dirs.sh && success || failure
  15. echo
  16. echo -n $"Executing Qubes random seed scripts:"
  17. /usr/lib/qubes/init/qubes-random-seed.sh && success || failure
  18. echo
  19. }
  20. stop()
  21. {
  22. return 0
  23. }
  24. case "$1" in
  25. start)
  26. start
  27. ;;
  28. stop)
  29. stop
  30. ;;
  31. *)
  32. echo $"Usage: $0 {start|stop}"
  33. exit 3
  34. ;;
  35. esac
  36. exit $RETVAL