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.
This commit is contained in:
parent
104eb3420b
commit
61596b16d2
@ -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::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user