summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-10-04 19:16:00 +0300
committerMaxim Devaev <[email protected]>2021-10-04 19:16:00 +0300
commit58644dd96d1945a9e6c12ec8cac2de3d41509ff5 (patch)
tree686fb690cffab0be1c34b71a10b4d2194c994def /kvmd.install
parentb1b008f6e185af753ed8eb9db16368de8077ca2b (diff)
ntp workaround
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install
index c4765066..a34df7ff 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -39,4 +39,5 @@ post_upgrade() {
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=pi3-disable-bt$/dtoverlay=disable-bt/g' /boot/config.txt
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=dwc2$/dtoverlay=dwc2,dr_mode=peripheral/g' /boot/config.txt
[ ! -f /etc/conf.d/rngd ] || (echo 'RNGD_OPTS="-o /dev/random -r /dev/hwrng -x jitter -x pkcs11 -x rtlsdr"' > /etc/conf.d/rngd)
+ [ ! -f /etc/systemd/timesyncd.conf ] || sed -e 's/#NTP=$/NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org/g' /etc/systemd/timesyncd.conf
}