Remove 'if true' wrapper from 06a0d30d50
This commit is contained in:
parent
cb55dfa6ae
commit
ae1a334a1d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user