From 09ea6a0778a0e095f89925396338c72f1881ebfd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 7 Sep 2016 20:55:50 +0200 Subject: add a comment to configuration file --- 30-timesyncd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/30-timesyncd b/30-timesyncd index 710a3fc..2276cbb 100755 --- a/30-timesyncd +++ b/30-timesyncd @@ -7,8 +7,12 @@ case "${STATUS}" in up|dhcp4-change) if [ -n "${DHCP4_NTP_SERVERS}" ]; then mkdir -p /run/systemd/timesyncd.conf.d/ - echo "[Time]" > /run/systemd/timesyncd.conf.d/${INTERFACE}.conf + + echo -e "# generated for interface ${INTERFACE} by networkmanager-dispatcher-timesyncd\n" \ + > /run/systemd/timesyncd.conf.d/${INTERFACE}.conf + echo "[Time]" >> /run/systemd/timesyncd.conf.d/${INTERFACE}.conf echo "NTP = ${DHCP4_NTP_SERVERS}" >> /run/systemd/timesyncd.conf.d/${INTERFACE}.conf + timedatectl set-ntp true fi ;; -- cgit v1.2.3-70-g09d2