Skip to content

Commit

Permalink
fixed ntp sed
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Oct 4, 2021
1 parent 2641ef7 commit 97f1546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvmd.install
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +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
[ ! -f /etc/systemd/timesyncd.conf ] || sed -i -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
}

0 comments on commit 97f1546

Please sign in to comment.