Commit 20b6a8c3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

evz-vboxmanage: add sleep

parent c42b98d1
......@@ -130,6 +130,13 @@ case $CMD in
todo docmd ker restart $i
done
;;
sleep) # HELPCMD: sleep (savestate) virtual machine(s)
LIST="$(get_list "$@")"
for i in $LIST ; do
info "Sleepign $i ..."
docmd vboxmanage controlvm $i savestate
done
;;
list|ps) # HELPCMD: list available virtual machine(s) (use -q|-1 for list only ID, list -a for list ever stopped virtual machines)
# if -q, just id list
if [ -z "$verbose" ] || [ "$1" = "-1" ] || [ "$1" = "-q" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment