From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8EC61382C5 for ; Thu, 15 Mar 2018 17:07:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 018FFE086C; Thu, 15 Mar 2018 17:07:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D0132E086C for ; Thu, 15 Mar 2018 17:07:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03F0D335C7B for ; Thu, 15 Mar 2018 17:07:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AFB015A for ; Thu, 15 Mar 2018 17:07:18 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1521133592.3eca4027c0ed5aa526cbe94a92c0f0ddff8d186a.zerochaos@gentoo> Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/ X-VCS-Repository: proj/livecd-tools X-VCS-Files: init.d/fixinittab X-VCS-Directories: init.d/ X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 3eca4027c0ed5aa526cbe94a92c0f0ddff8d186a X-VCS-Branch: master Date: Thu, 15 Mar 2018 17:07:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a0c86ae7-558b-46eb-bd21-1c7f96f7f4ea X-Archives-Hash: 203f145adb3c27fd1a4e38910a188229 commit: 3eca4027c0ed5aa526cbe94a92c0f0ddff8d186a Author: Rick Farina (Zero_Chaos) gentoo org> AuthorDate: Thu Mar 15 17:06:32 2018 +0000 Commit: Richard Farina gentoo org> CommitDate: Thu Mar 15 17:06:32 2018 +0000 URL: https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=3eca4027 add secureconsole boot option don't log in every console if the user requests secureconsole init.d/fixinittab | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/init.d/fixinittab b/init.d/fixinittab index de9ca06..d675b9b 100644 --- a/init.d/fixinittab +++ b/init.d/fixinittab @@ -12,6 +12,12 @@ start() return 1 fi + for x in ${CMDLINE} ; do + case "${x}" in + secureconsole) SECURECONSOLE="yes";; + esac + done + ebegin "Adjusting inittab" # Create a backup if [ ! -e /etc/inittab.old ] @@ -76,10 +82,14 @@ start() else if [ "${LIVECD_CONSOLE}" = "tty0" -o "${LIVECD_CONSOLE}" = "" ] then - for x in 1 2 3 4 5 6 - do - echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin $(id -nu 1000 2>/dev/null || echo root) tty${x}" >> /etc/inittab - done + if [ "${SECURECONSOLE}" = "yes" ]; then + echo "c1:12345:respawn:/sbin/mingetty --noclear --autologin $(id -nu 1000 2>/dev/null || echo root) tty${x}" >> /etc/inittab + else + for x in 1 2 3 4 5 6 + do + echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin $(id -nu 1000 2>/dev/null || echo root) tty${x}" >> /etc/inittab + done + fi else eindent ebegin "Adding ${LIVECD_CONSOLE} console to inittab"