You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
. "${PM_FUNCTIONS}"
|
|
|
|
pause_vms()
|
|
{
|
|
echo
|
|
qvm-run --all --pause
|
|
}
|
|
|
|
|
|
unpause_vms()
|
|
{
|
|
echo
|
|
qvm-run --all --unpause
|
|
}
|
|
|
|
|
|
case "$1" in
|
|
thaw|resume) unpause_vms ;;
|
|
suspend|hibernate) pause_vms ;;
|
|
*) exit 0 ;;
|
|
esac
|