vmware-12.1.rc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2014 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need localmount
  6. use net
  7. }
  8. start() {
  9. ebegin Starting VMware USB Arbitrator
  10. #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator
  11. @@BINDIR@@/vmware-usbarbitrator
  12. eend $?
  13. ebegin Starting VMware services
  14. # quiet for vmci because it may not be there
  15. modprobe -vq vmci || modprobe -v vmw_vmci
  16. eend $?
  17. # vmci or vmw_vmci was loaded by the previous modprobe
  18. # no need to do it here
  19. modprobe -av vmmon vsock vmblock vmnet
  20. eend $?
  21. @@BINDIR@@/vmware-networks --start
  22. eend $?
  23. }
  24. stop() {
  25. ebegin Stopping VMware USB Arbitrator
  26. #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator
  27. killall --wait @@BINDIR@@/vmware-usbarbitrator
  28. eend $?
  29. @@BINDIR@@/vmware-networks --stop
  30. eend $?
  31. ebegin Stopping VMware services
  32. modprobe -rv vsock vmmon vmblock vmnet
  33. eend $?
  34. # quiet for vmci because it may not be there
  35. modprobe -rvq vmci || modprobe -rv vmw_vmci
  36. eend $?
  37. }