From 61596b16d228c15888033da3b4138c1e405e1cb9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 29 Jul 2019 16:34:10 -0500 Subject: Install gettys if the MKSYSVINIT switch is set to yes The default is to put one getty in the "single" runlevel and 6 in the "default" runlevel. --- runlevels/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/runlevels/Makefile b/runlevels/Makefile index 8d16e6d6..969070d0 100644 --- a/runlevels/Makefile +++ b/runlevels/Makefile @@ -94,6 +94,15 @@ install: if ! test -d "${SINGLEDIR}"; then \ ${INSTALL} -d ${SINGLEDIR} || exit $$?; \ fi + if test "${MKSYSVINIT}" = yes && test "${OS}" = Linux; then \ + for x in tty1 tty2 tty3 tty4 tty5 tty6; do \ + ln -snf ${INITDIR}/agetty ${DESTDIR}/${INITDIR}/"agetty.$$x" || exit $$?; \ + done; \ + for x in tty1 tty2 tty3 tty4 tty5 tty6; do \ + ln -snf ${INITDIR}/agetty.$$x ${DEFAULTDIR}/"agetty.$$x" || exit $$?; \ + done; \ + ln -snf ${INITDIR}/agetty.tty1 ${SINGLEDIR}/agetty.tty1 || exit $$?; \ + fi check test:: -- cgit v1.2.3