diff options
author | William Hubbs <william.hubbs@sony.com> | 2019-07-29 16:34:10 -0500 |
---|---|---|
committer | William Hubbs <william.hubbs@sony.com> | 2019-07-29 17:38:47 -0500 |
commit | 61596b16d228c15888033da3b4138c1e405e1cb9 (patch) | |
tree | 3b169fff829fd6df24136299d0507617fb7f520a /runlevels | |
parent | 104eb3420b9332b441ce9965ef69ba5b099519ae (diff) |
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.
Diffstat (limited to 'runlevels')
-rw-r--r-- | runlevels/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
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:: |