Commit Graph

10 Commits

Author SHA1 Message Date
Miroslav Lichvar
ba7e409249 rework NM-dispatcher/dhclient detection
The packaged NM dispatcher and dhclient scripts provide the same
functionality. Only one should be active depending on the system
configuration.

Instead of guessing in the NM dispatcher script whether the dhclient
script is executed, check in the dhclient script whether it is called
from a NM dispatcher script (the 11-dhclient script included in the
dhcp-client package).

This is simpler and it removes dependency on the 11-dhclient script.
2021-04-22 13:21:39 +02:00
Miroslav Lichvar
0ecc1e4fe9 switch to sourcedir directive for loading servers from DHCP
Drop the chrony-helper script in favor of the new sourcedir directive.

Modify the dhclient script to save NTP servers from DHCP to
/run/chrony-dhcp/$interface.sources and configure chronyd to (re)load
the sources from files in that directory on start and the "reload
sources" command.

Other functionality of the helper script is dropped with no
replacemement.
2020-08-26 09:39:23 +02:00
Miroslav Lichvar
cafc2b7a75 fix shellcheck warnings in helper scripts 2019-05-23 09:50:28 +02:00
Miroslav Lichvar
7715352a8a extend chrony-helper to allow using servers from DNS SRV records (#1234406) 2015-06-22 16:50:09 +02:00
Miroslav Lichvar
9f19c56cdc add servers from DHCP with iburst option by default 2014-09-11 16:17:51 +02:00
Miroslav Lichvar
70a359cd59 remove old servers on DHCP update (#787042) 2012-02-15 14:34:41 +01:00
Miroslav Lichvar
2ca8fa6882 improve chrony-helper to keep track of servers added from DHCP (#787042) 2012-02-10 17:25:37 +01:00
Miroslav Lichvar
7457494fee fix dhclient script to always return with zero exit code (#767859) 2012-02-10 17:25:37 +01:00
Miroslav Lichvar
259c5c431c drop SysV init script 2011-06-24 17:23:33 +02:00
Miroslav Lichvar
09dcbbacfb - update to 20100428git73d775
- replace initstepslew directive with makestep in default config
- add NetworkManager dispatcher script
- add dhclient script
- retry server/peer name resolution at least once to workaround
    NetworkManager race condition on boot
- don't verify chrony.keys
2010-04-29 13:50:56 +00:00