From 48d1cd53ed0e50e0be99a2a620ccdddf020d26a0 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 27 Dec 2019 10:52:08 +0300 Subject: change inittab according to prefix --- Makefile | 14 ++++++++------ inittab | 16 ++++++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 41eacf1..4efb010 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,14 @@ PREFIX=/usr install: - @install -Dm644 inittab ${DESTDIR}/etc/inittab - @install -Dm755 rc.boot ${DESTDIR}${PREFIX}/lib/init/rc.boot - @install -Dm755 rc.shutdown ${DESTDIR}${PREFIX}/lib/init/rc.shutdown + mkdir -p ${DESTDIR}/etc + sed 's#PREFIX#{PREFIX}#g' < inittab > ${DESTDIR}/etc/inittab + chmod 644 ${DESTDIR}/etc/inittab + install -Dm755 rc.boot ${DESTDIR}${PREFIX}/lib/init/rc.boot + install -Dm755 rc.shutdown ${DESTDIR}${PREFIX}/lib/init/rc.shutdown uninstall: - @rm -f ${DESTDIR}/etc/inittab - @rm -f ${DESTDIR}${PREFIX}/lib/init/rc.boot - @rm -f ${DESTDIR}${PREFIX}/lib/init/rc.shutdown + rm -f ${DESTDIR}/etc/inittab + rm -f ${DESTDIR}${PREFIX}/lib/init/rc.boot + rm -f ${DESTDIR}${PREFIX}/lib/init/rc.shutdown diff --git a/inittab b/inittab index 2cd998c..d3704f3 100644 --- a/inittab +++ b/inittab @@ -1,11 +1,11 @@ -::sysinit:/lib/init/rc.boot +::sysinit:PREFIX/lib/init/rc.boot ::restart:/sbin/init -::shutdown:/lib/init/rc.shutdown +::shutdown:PREFIX/lib/init/rc.shutdown ::respawn:runsvdir -P /var/service 'log: ................................................................................................................................................................................................................................................................' -tty1::respawn:/sbin/getty 38400 tty1 -tty2::respawn:/sbin/getty 38400 tty2 -tty3::respawn:/sbin/getty 38400 tty3 -tty4::respawn:/sbin/getty 38400 tty4 -tty5::respawn:/sbin/getty 38400 tty5 -tty6::respawn:/sbin/getty 38400 tty6 +tty1::respawn:/sbin/agetty 38400 tty1 +tty2::respawn:/sbin/agetty 38400 tty2 +tty3::respawn:/sbin/agetty 38400 tty3 +tty4::respawn:/sbin/agetty 38400 tty4 +tty5::respawn:/sbin/agetty 38400 tty5 +tty6::respawn:/sbin/agetty 38400 tty6 -- cgit v1.2.3