qubes-core-netvm 617 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /usr/lib/qubes/init/network-proxy-setup && success || failure
  19. echo
  20. }
  21. stop()
  22. {
  23. return 0
  24. }
  25. case "$1" in
  26. start)
  27. start
  28. ;;
  29. stop)
  30. stop
  31. ;;
  32. *)
  33. echo $"Usage: $0 {start|stop}"
  34. exit 3
  35. ;;
  36. esac
  37. exit $RETVAL