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