Remove 'if true' wrapper from 06a0d30d50

This commit is contained in:
Rusty Bird 2016-07-01 16:01:48 +00:00
parent cb55dfa6ae
commit ae1a334a1d
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -9,19 +9,16 @@ possibly_run_save_script()
DISPLAY=:0 su - user -c /tmp/qubes-save-script
}
if true; then
echo user | /bin/sh /etc/qubes-rpc/qubes.WaitForSession
possibly_run_save_script
umount /rw
dmesg -c >/dev/null
qubesdb-watch /qubes-restore-complete &
watch_pid=$!
free | grep Mem: |
(read label total used free shared buffers cached; qubesdb-write /qubes-used-mem $(( $used + $cached )) )
# we're still running in DispVM template
echo "Waiting for save/restore..."
qubesdb-read /qubes-restore-complete || wait $watch_pid
echo Back to life.
systemctl restart qubes-random-seed.service
fi
echo user | /bin/sh /etc/qubes-rpc/qubes.WaitForSession
possibly_run_save_script
umount /rw
dmesg -c >/dev/null
qubesdb-watch /qubes-restore-complete &
watch_pid=$!
free | grep Mem: |
(read label total used free shared buffers cached; qubesdb-write /qubes-used-mem $(( $used + $cached )) )
# we're still running in DispVM template
echo "Waiting for save/restore..."
qubesdb-read /qubes-restore-complete || wait $watch_pid
echo Back to life.
systemctl restart qubes-random-seed.service