]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/openvmtools
2 ########################################################################
3 # Begin $rc_base/init.d/
5 # Description : init-script for open-vm-tools
7 # Authors : Jan Paul Tuecking (earl@ipfire.org)
13 ########################################################################
20 if ps ax |
grep -v grep |
grep /usr
/bin
/vmtoolsd
> /dev
/null
22 boot_mesg
"vmtoolsd is running..."
25 if /usr
/bin
/vmware-checkvm
> /dev
/null
2>&1; then
26 boot_mesg
"Starting..."
30 boot_mesg
"IPFire is not running in a virtual machine."
37 if ps ax |
grep -v grep |
grep /usr
/bin
/vmtoolsd
> /dev
/null
39 boot_mesg
"Stopping..."
40 killall
/usr
/bin
/vmtoolsd
> /dev
/null
43 boot_mesg
"vmtoolsd is not running..."
55 statusproc
/usr
/bin
/vmtoolsd
59 echo "Usage: ${0} {start|stop|restart}"
64 # End $rc_base/init.d/