core-admin/dom0/pm-utils/01qubes-sync-vms-clock

17 lines
247 B
Bash
Executable File

#!/bin/sh
. "${PM_FUNCTIONS}"
sync_qubes_vms_wallclock()
{
DATE=$(date)
echo
echo "Syncing VMs clock to: $DATE"
qvm-run --all -u root "date -s \"$DATE\""
}
case "$1" in
thaw|resume) sync_qubes_vms_wallclock ;;
*) exit 0 ;;
esac