qubes-core-admin-linux/pm-utils/52qubes-pause-vms
Marek Marczykowski-Górecki 51abb471b9
Instruct qubesd to suspend VMs before going to sleep
Move suspend handling into qubesd.
2017-06-06 20:48:12 +02:00

13 lines
308 B
Bash
Executable File

#!/bin/sh
case "$1" in
suspend|hibernate)
qubesd-query -e --fail -c /var/run/qubesd.internal.sock \
dom0 internal.SuspendPre dom0
;;
resume|thaw)
qubesd-query -e --fail -c /var/run/qubesd.internal.sock \
dom0 internal.SuspendPost dom0
;;
esac