Signed-off-by: Bruno Thomsen <bruno.thom...@gmail.com> --- rules/chrony.in | 7 +++++++ rules/chrony.make | 8 ++++++++ 2 files changed, 15 insertions(+)
diff --git a/rules/chrony.in b/rules/chrony.in index 9eac48971..525be2681 100644 --- a/rules/chrony.in +++ b/rules/chrony.in @@ -95,6 +95,13 @@ endif config CHRONY_STARTSCRIPT bool default y + depends on INITMETHOD_BBINIT prompt "install /etc/init.d/chrony" +config CHRONY_SYSTEMD_UNIT + bool + default y + depends on INITMETHOD_SYSTEMD + prompt "install systemd unit files" + endif diff --git a/rules/chrony.make b/rules/chrony.make index 3f90a00b1..a72752030 100644 --- a/rules/chrony.make +++ b/rules/chrony.make @@ -106,6 +106,14 @@ ifneq ($(call remove_quotes, $(PTXCONF_CHRONY_BBINIT_LINK)),) endif endif endif + +ifdef PTXCONF_CHRONY_SYSTEMD_UNIT + @$(call install_alternative, chrony, 0, 0, 0644, \ + $(CHRONY_DIR)/examples/chronyd.service, /usr/lib/systemd/system/chronyd.service) + @$(call install_link, chrony, ../chronyd.service, \ + /usr/lib/systemd/system/multi-user.target.wants/chronyd.service) +endif + @$(call install_finish, chrony) @$(call touch) -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-requ...@pengutronix.de