qubes-core-netvm 677 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. #
  3. # chkconfig: 345 90 90
  4. # description: Executes Qubes core scripts at NetVM 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. if is_netvm; then
  14. /usr/lib/qubes/network-manager-prepare-conf-dir
  15. /sbin/service NetworkManager start
  16. fi
  17. echo -n $"Executing Qubes Core scripts NetVM:"
  18. # shellcheck disable=SC2015
  19. /usr/lib/qubes/init/network-proxy-setup && 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