* Fri Oct 03 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-8.sme

- add support for multiple coma separated NTPServer [SME: 10623]
- fix  ntpd  ong to start if not ntp server set [SME: 12954]
This commit is contained in:
2025-10-03 15:47:51 -04:00
parent c8321c9cbe
commit 6d07479bf6
2 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ if [ -f "$NEWFILE" ]; then
/usr/bin/chown ntp:ntp $NEWFILE
fi
#exit if setting to only use hardware clock
grep '^# sync to hw clock$' /etc/ntp.conf && exit 0
# force sync date and time
/usr/sbin/ntpd -q -x -g -g -g -g >/dev/null
# set hardware clock to the current time