aboutsummaryrefslogtreecommitdiff
path: root/runlevels/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'runlevels/Makefile')
-rw-r--r--runlevels/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile
index 9e3131a9..b8a830af 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -1,11 +1,13 @@
BOOT= bootmisc fsck hostname localmount \
root swap sysctl urandom
DEFAULT= local netmount
+SHUTDOWN= savecache
LEVELDIR= ${DESTDIR}/${SYSCONFDIR}/runlevels
SYSINITDIR= ${LEVELDIR}/sysinit
BOOTDIR= ${LEVELDIR}/boot
DEFAULTDIR= ${LEVELDIR}/default
+SHUTDOWNDIR= ${LEVELDIR}/shutdown
INITDIR= ../init.d
@@ -44,6 +46,14 @@ install:
fi; \
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
fi
+ if ! test -d "${SHUTDOWNDIR}"; then \
+ ${INSTALL} -d ${SHUTDOWNDIR} || exit $$?; \
+ for x in ${SHUTDOWN}; do \
+ if test -n "${PREFIX}"; then \
+ grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \
+ fi; \
+ ln -snf ${PREFIX}/etc/init.d/"$$x" ${SHUTDOWNDIR}/"$$x" || exit $$?; done \
+ fi
check test::