2010-07-06 16:22:34 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. "${PM_FUNCTIONS}"
|
|
|
|
|
|
|
|
sync_qubes_vms_wallclock()
|
|
|
|
{
|
2012-01-30 11:00:35 +01:00
|
|
|
/usr/bin/qvm-sync-dom0-clock
|
2010-07-06 16:22:34 +02:00
|
|
|
DATE=$(date)
|
2010-07-08 12:45:33 +02:00
|
|
|
echo
|
2010-07-06 16:22:34 +02:00
|
|
|
echo "Syncing VMs clock to: $DATE"
|
2012-01-30 13:09:20 +01:00
|
|
|
qvm-run --all --exclude=`qvm-get-clockvm` -u root "date -s \"$DATE\""
|
2010-07-06 16:22:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
thaw|resume) sync_qubes_vms_wallclock ;;
|
|
|
|
*) exit 0 ;;
|
|
|
|
esac
|