From 7e3b18a38defe67f7ddad1255ef74ad05e48193a Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 28 Feb 2021 09:34:36 +0100 Subject: [PATCH] Refactor install/uninstall of rescue.conf Signed-off-by: Joachim Wiberg --- src/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index c3198a80..952be79c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,6 +10,10 @@ endif sbin_PROGRAMS = finit initctl pkglibexec_SCRIPTS = cgreaper.sh + +finit_pkglibdir = $(pkglibdir) +finit_pkglib_SCRIPTS = rescue.conf + if WATCHDOGD pkglibexec_PROGRAMS = watchdogd endif @@ -68,7 +72,6 @@ endif # Hook in install to add finit and reboot symlink(s) install-exec-hook: - @$(INSTALL_DATA) $(srcdir)/rescue.conf $(DESTDIR)$(pkglibdir) @for file in $(INIT_LNKS); do \ lnk=$(DESTDIR)$(sbindir)/$$file; \ if [ -e $$lnk ]; then \ @@ -87,7 +90,6 @@ install-exec-hook: done uninstall-hook: - @$(RM) $(DESTDIR)$(pkglibdir)/rescue.conf @for file in $(INIT_LNKS); do \ lnk=$(DESTDIR)$(sbindir)/$$file; \ dst=`readlink $$lnk`; \