mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
Refactor install/uninstall of rescue.conf
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
70c884816e
commit
7e3b18a38d
1 file changed
+4
-2
+4
-2
@@ -10,6 +10,10 @@ endif
|
|||||||
|
|
||||||
sbin_PROGRAMS = finit initctl
|
sbin_PROGRAMS = finit initctl
|
||||||
pkglibexec_SCRIPTS = cgreaper.sh
|
pkglibexec_SCRIPTS = cgreaper.sh
|
||||||
|
|
||||||
|
finit_pkglibdir = $(pkglibdir)
|
||||||
|
finit_pkglib_SCRIPTS = rescue.conf
|
||||||
|
|
||||||
if WATCHDOGD
|
if WATCHDOGD
|
||||||
pkglibexec_PROGRAMS = watchdogd
|
pkglibexec_PROGRAMS = watchdogd
|
||||||
endif
|
endif
|
||||||
@@ -68,7 +72,6 @@ endif
|
|||||||
|
|
||||||
# Hook in install to add finit and reboot symlink(s)
|
# Hook in install to add finit and reboot symlink(s)
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
@$(INSTALL_DATA) $(srcdir)/rescue.conf $(DESTDIR)$(pkglibdir)
|
|
||||||
@for file in $(INIT_LNKS); do \
|
@for file in $(INIT_LNKS); do \
|
||||||
lnk=$(DESTDIR)$(sbindir)/$$file; \
|
lnk=$(DESTDIR)$(sbindir)/$$file; \
|
||||||
if [ -e $$lnk ]; then \
|
if [ -e $$lnk ]; then \
|
||||||
@@ -87,7 +90,6 @@ install-exec-hook:
|
|||||||
done
|
done
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
@$(RM) $(DESTDIR)$(pkglibdir)/rescue.conf
|
|
||||||
@for file in $(INIT_LNKS); do \
|
@for file in $(INIT_LNKS); do \
|
||||||
lnk=$(DESTDIR)$(sbindir)/$$file; \
|
lnk=$(DESTDIR)$(sbindir)/$$file; \
|
||||||
dst=`readlink $$lnk`; \
|
dst=`readlink $$lnk`; \
|
||||||
|
|||||||
Reference in new issue
Block a user