summaryrefslogtreecommitdiffstats
path: root/rules/ntp.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2013-03-28 15:08:24 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-03-29 10:58:35 +0100
commitefe4ac870515065145adf8ad309f3900cbd903c0 (patch)
tree4fdcb9cc90b9bc7b5f4d83c41dc60969774e9d3a /rules/ntp.make
parent20c6d444465bf7bca801e0b9f43e4e00e74f0ec0 (diff)
downloadptxdist-efe4ac870515065145adf8ad309f3900cbd903c0.tar.gz
ptxdist-efe4ac870515065145adf8ad309f3900cbd903c0.tar.xz
ntp: add systemd unit
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/ntp.make')
-rw-r--r--rules/ntp.make6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules/ntp.make b/rules/ntp.make
index 720d52220..84d48c1b3 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -322,6 +322,12 @@ ifneq ($(call remove_quotes,$(PTXCONF_NTP_NTPD_BBINIT_LINK)),)
endif
endif
endif
+ifdef PTXCONF_NTP_NTPD_SYSTEMD_UNIT
+ @$(call install_alternative, ntp, 0, 0, 0644, \
+ /lib/systemd/system/ntpd.service)
+ @$(call install_link, ntp, ../ntpd.service, \
+ /lib/systemd/system/multi-user.target.wants/ntpd.service)
+endif
# #
# # ntpdc