1From 014dc43447fa553e875984ac4a528e5916cc9e06 Mon Sep 17 00:00:00 2001 2From: Carlos Santos <unixmania@gmail.com> 3Date: Sat, 29 Feb 2020 22:41:30 -0300 4Subject: [PATCH] runlevels: do not add agetty.tty[1-6] if MKSYSVINIT=yes 5 6Buildroot starts a single getty, according to the system configuration. 7Also tty[1-6] may not exist (e.g. embedded devices with serial consoles 8only). 9 10Signed-off-by: Carlos Santos <unixmania@gmail.com> 11--- 12 runlevels/Makefile | 6 ------ 13 1 file changed, 6 deletions(-) 14 15diff --git a/runlevels/Makefile b/runlevels/Makefile 16index 73843d8b..dbfb59ca 100644 17--- a/runlevels/Makefile 18+++ b/runlevels/Makefile 19@@ -90,12 +90,6 @@ install: 20 fi; \ 21 ln -snf ${INITDIR}/"$$x" ${SHUTDOWNDIR}/"$$x" || exit $$?; done \ 22 fi 23- if test "${MKSYSVINIT}" = yes && test "${OS}" = Linux; then \ 24- for x in tty1 tty2 tty3 tty4 tty5 tty6; do \ 25- ln -snf ${INITDIR}/agetty ${DESTDIR}/${INITDIR}/"agetty.$$x" || exit $$?; \ 26- ln -snf ${INITDIR}/agetty.$$x ${DEFAULTDIR}/"agetty.$$x" || exit $$?; \ 27- done; \ 28- fi 29 30 check test:: 31 32-- 332.18.2 34 35