From 19da29a60408f9000e8db7aefff55d254e54152d Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 30 Sep 2012 18:19:49 +0200 Subject: fake-overlayfs: add systemd support Signed-off-by: Michael Olbrich --- rules/fake-overlayfs.make | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'rules/fake-overlayfs.make') diff --git a/rules/fake-overlayfs.make b/rules/fake-overlayfs.make index 54227fc01..7c81d4b60 100644 --- a/rules/fake-overlayfs.make +++ b/rules/fake-overlayfs.make @@ -49,15 +49,26 @@ $(STATEDIR)/fake-overlayfs.targetinstall: @$(call install_fixup, fake-overlayfs,DESCRIPTION,missing) @$(call install_alternative, fake-overlayfs, 0, 0, 0755, \ - /etc/init.d/fake-overlayfs) - @$(call install_replace, fake-overlayfs, /etc/init.d/fake-overlayfs, \ + /sbin/fake-overlayfs) + @$(call install_replace, fake-overlayfs, /sbin/fake-overlayfs, \ @OVERLAY_DIRLIST@, $(FAKE_OVERLAYFS_DIRS)) +ifdef PTXCONF_INITMETHOD_BBINIT + @$(call install_alternative, fake-overlayfs, 0, 0, 0755, \ + /etc/init.d/fake-overlayfs) + ifneq ($(call remove_quotes,$(PTXCONF_FAKE_OVERLAYFS_BBINIT_LINK)),) @$(call install_link, fake-overlayfs, \ ../init.d/fake-overlayfs, \ /etc/rc.d/$(PTXCONF_FAKE_OVERLAYFS_BBINIT_LINK)) endif +endif +ifdef PTXCONF_LIGHTTPD_SYSTEMD_UNIT + @$(call install_alternative, fake-overlayfs, 0, 0, 0644, \ + /lib/systemd/system/fake-overlayfs.service) + @$(call install_link, fake-overlayfs, ../fake-overlayfs.service, \ + /lib/systemd/system/sysinit.target.wants/fake-overlayfs.service) +endif @$(call install_finish, fake-overlayfs) -- cgit v1.2.3