From f5c1fab3d9715d14074efffc2413acce8a906602 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 9 Jan 2020 14:17:01 +0300 Subject: change configuration location to /etc/init --- Makefile | 10 ++++------ rc.boot | 2 +- rc.shutdown | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 2cb7fec..358118f 100644 --- a/Makefile +++ b/Makefile @@ -7,15 +7,13 @@ install: mkdir -p ${DESTDIR}/etc sed 's#INITDIR#${INITDIR}#g' < inittab > ${DESTDIR}/etc/inittab chmod 644 ${DESTDIR}/etc/inittab - install -Dm644 rc.conf ${DESTDIR}${INITDIR}/rc.conf - sed 's#PREFIX#${PREFIX}#g' < rc.boot > ${DESTDIR}${INITDIR}/rc.boot - sed 's#PREFIX#${PREFIX}#g' < rc.shutdown > ${DESTDIR}${INITDIR}/rc.shutdown - chmod 755 ${DESTDIR}${INITDIR}/rc.boot - chmod 755 ${DESTDIR}${INITDIR}/rc.shutdown + 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 uninstall: rm -f ${DESTDIR}/etc/inittab - rm -f ${DESTDIR}${INITDIR}/rc.conf + rm -f ${DESTDIR}/etc/init/rc.conf rm -f ${DESTDIR}${INITDIR}/rc.boot rm -f ${DESTDIR}${INITDIR}/rc.shutdown diff --git a/rc.boot b/rc.boot index a86a29f..e005339 100755 --- a/rc.boot +++ b/rc.boot @@ -1,6 +1,6 @@ #!/bin/sh -. PREFIX/lib/init/rc.conf +. /etc/init/rc.conf welcome() { printf '\033[1;36m=>\033[m\033[1m Welcome to\033[35m Carbs Linux\033[m\033[1m!\n' ;} diff --git a/rc.shutdown b/rc.shutdown index 3b69830..f47fdf7 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -1,6 +1,6 @@ #!/bin/sh -. PREFIX/lib/init/rc.conf +. /etc/init/rc.conf main() { PATH=/sbin:/bin:/usr/sbin:/usr/bin -- cgit v1.2.3