logo

overlay

My (experimental) gentoo overlay
commit: 104ec689ed13d3b510e97beec864a502635e1d4f
parent: 87a183a531fc899b6ba8389b832259f21f4059d0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  7 May 2019 08:36:42 +0200

sys-apps/openrc: agetty.tty[2-6] symlinks

Diffstat:

Msys-apps/openrc/openrc-0.41.2.ebuild11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/sys-apps/openrc/openrc-0.41.2.ebuild b/sys-apps/openrc/openrc-0.41.2.ebuild @@ -155,6 +155,17 @@ src_install() { if use newnet; then dodoc README.newnet fi + + # start all the tty at boot except tty1 to not conflict with OpenRC output + if use init; then + for n in 2 3 4 5 6; do + dosym "/etc/init.d/agetty" "${ED}/etc/init.d/agetty.${n}" + dosym "/etc/init.d/agetty.${n}" "/etc/runlevel/boot/agetty.${n}" + done + # I like to keep a tty for OpenRC + #dosym "/etc/init.d/agetty" "${ED}/etc/init.d/agetty.1" + #dosym "/etc/init.d/agetty.1" "/etc/runlevel/default/agetty.1" + fi } pkg_preinst() {