8 if [ -f /etc
/rc.d
/vmware.d
/init.d
/vmware
] ; then
9 VMWARECTL
=/etc
/rc.d
/vmware.d
/init.d
/vmware
10 elif [ -f /etc
/rc.d
/vmware
] ; then
11 VMWARECTL
=/etc
/rc.d
/vmware
12 elif [ -f /etc
/init.d
/vmware
] ; then
13 VMWARECTL
=/etc
/init.d
/vmware
15 echo -n "VMWare daemon startup script not found (/etc/rc.d/vmware, /etc/rc.d/vmware.d/init.d/vmware or /etc/init.d/vmware)"
20 if [ -f /etc
/rc.d
/vmware.d
/init.d
/vmware-USBArbitrator
] ; then
21 VMWAREUSBCTL
=/etc
/rc.d
/vmware.d
/init.d
/vmware-USBArbitrator
22 elif [ -f /etc
/rc.d
/vmware-USBArbitrator
] ; then
23 VMWAREUSBCTL
=/etc
/rc.d
/vmware-USBArbitrator
24 elif [ -f /etc
/init.d
/vmware-USBArbitrator
] ; then
25 VMWAREUSBCTL
=/etc
/init.d
/vmware-USBArbitrator
27 echo -n "No USBArbitrator found (/etc/rc.d/vmware or /etc/rc.d/vmware.d/init.d/vmware)"
32 ck_daemon hal
&& /etc
/rc.d
/hal start
33 stat_busy
"Starting VMware Host"
34 if $VMWARECTL start
; then
35 add_daemon
$daemon_name
41 if [ -n VMWAREUSBCTL
] ; then
42 stat_busy
"Starting VMware USB Arbitrator"
43 if $VMWAREUSBCTL start
; then
44 add_daemon
${daemon_name}USB
53 stat_busy
"Stopping VMware Host"
54 ck_daemon
${daemon_name}USB
&& RES
=true
56 stat_busy
"Stopping VMware USB Arbitrator"
57 if $VMWAREUSBCTL stop
; then
58 rm_daemon
${daemon_name}USB
65 if $VMWARECTL stop
; then
66 rm_daemon
$daemon_name
78 echo "usage: $0 {start|stop|reload|restart|status}"