mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
systemd: install timesync service if selected
If support for systemd-timesyncd is selected, install the associated service. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
2b799ee17b
commit
e1433ad992
@ -112,6 +112,11 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
|
ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
|
||||||
SYSTEMD_CONF_OPT += --enable-timesyncd
|
SYSTEMD_CONF_OPT += --enable-timesyncd
|
||||||
|
define SYSTEMD_INSTALL_SERVICE_TIMESYNC
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
|
||||||
|
ln -sf ../../../../lib/systemd/system/systemd-timesyncd.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
|
||||||
|
endef
|
||||||
else
|
else
|
||||||
SYSTEMD_CONF_OPT += --disable-timesyncd
|
SYSTEMD_CONF_OPT += --disable-timesyncd
|
||||||
endif
|
endif
|
||||||
@ -167,6 +172,7 @@ endef
|
|||||||
define SYSTEMD_INSTALL_INIT_SYSTEMD
|
define SYSTEMD_INSTALL_INIT_SYSTEMD
|
||||||
$(SYSTEMD_INSTALL_SERVICE_TTY)
|
$(SYSTEMD_INSTALL_SERVICE_TTY)
|
||||||
$(SYSTEMD_INSTALL_SERVICE_NETWORK)
|
$(SYSTEMD_INSTALL_SERVICE_NETWORK)
|
||||||
|
$(SYSTEMD_INSTALL_SERVICE_TIMESYNC)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user