aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-13 11:37:16 +0300
committerCem Keylan <cem@ckyln.com>2020-01-13 11:37:16 +0300
commit38a2e3f0ce51f335c63bf77646a827e216fc3025 (patch)
tree98dfc86e67ecbcf0afe992ebdc45246d93b7fc83 /Makefile
parentf4ecd3b5368a6588d797a59b0c6d49f79d9c70de (diff)
downloadinit-38a2e3f0ce51f335c63bf77646a827e216fc3025.tar.gz
allow user hooks and make it more portable0.4.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 358118f..ee33c77 100644
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,18 @@ install:
sed 's#INITDIR#${INITDIR}#g' < inittab > ${DESTDIR}/etc/inittab
chmod 644 ${DESTDIR}/etc/inittab
install -Dm644 rc.conf ${DESTDIR}/etc/init/rc.conf
- install -Dm755 rc.boot ${DESTDIR}${INITDIR}/rc.boot
- install -Dm755 rc.shutdown ${DESTDIR}${INITDIR}/rc.shutdown
+ install -Dm644 rc.lib ${DESTDIR}${INITDIR}/rc.lib
+ install -Dm755 rc.local ${DESTDIR}/etc/init/rc.local
+ sed 's#INITDIR#${INITDIR}#g' < rc.boot > ${DESTDIR}${INITDIR}/rc.boot
+ sed 's#INITDIR#${INITDIR}#g' < rc.shutdown > ${DESTDIR}${INITDIR}/rc.shutdown
+ chmod 755 ${DESTDIR}${INITDIR}/rc.boot ${DESTDIR}${INITDIR}/rc.shutdown
+ install -Dm644 README ${DESTDIR}${INITDIR}/README
uninstall:
rm -f ${DESTDIR}/etc/inittab
rm -f ${DESTDIR}/etc/init/rc.conf
+ rm -f ${DESTDIR}/etc/init/rc.local
rm -f ${DESTDIR}${INITDIR}/rc.boot
rm -f ${DESTDIR}${INITDIR}/rc.shutdown
-
+ rm -f ${DESTDIR}${INITDIR}/rc.lib
+ rm -f ${DESTDIR}${INITDIR}/README