Import rest of modules.
This commit is contained in:
parent
02fa10f33c
commit
3f225ced9b
39 changed files with 2056 additions and 0 deletions
18
vmware/files/scripts/vmware-suspend
Executable file
18
vmware/files/scripts/vmware-suspend
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
. /usr/local/lib/vmware.sh
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: `basename $0` <vm>" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
vm="$1"
|
||||
|
||||
vmid="`vmid \"${vm}\"`"
|
||||
if [ "${vmid}" = "" ]; then
|
||||
echo "Cannot find virtual machine ${vm}" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
vmware-vim-cmd vmsvc/power.suspend ${vmid}
|
Loading…
Add table
Add a link
Reference in a new issue