vmware-10.0.rc 867 B

12345678910111213141516171819202122232425262728293031323334353637
  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. modprobe -v vmci || modprobe -v vmw_vmci
  15. eend $?
  16. modprobe -av vmmon vmci vsock vmblock vmnet
  17. eend $?
  18. @@BINDIR@@/vmware-networks --start
  19. eend $?
  20. }
  21. stop() {
  22. ebegin Stopping VMware USB Arbitrator
  23. #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator
  24. killall --wait @@BINDIR@@/vmware-usbarbitrator
  25. eend $?
  26. @@BINDIR@@/vmware-networks --stop
  27. eend $?
  28. ebegin Stopping VMware services
  29. modprobe -rv vsock vmmon vmblock vmnet
  30. eend $?
  31. modprobe -rv vmci || modprobe -rv vmw_vmci
  32. eend $?
  33. }