Merge pull request #737 from Calvin-L/patch-1-on-test-branch

Flush disk writes before reboot (resubmit)
This commit is contained in:
4s3ti 2019-05-13 22:38:18 +01:00 committed by GitHub
commit 50e19f5906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1371,6 +1371,10 @@ main() {
$SUDO systemctl start openvpn.service
;;
esac
# Ensure that cached writes reach persistent storage
echo "::: Flushing writes to disk..."
sync
echo "::: done."