qubes-core-admin-linux/pm-utils/52qubes-pause-vms

24 lines
241 B
Plaintext
Raw Normal View History

2013-03-16 18:52:16 +00:00
#!/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