public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/
Date: Thu, 29 Jul 2021 04:05:47 +0000 (UTC)	[thread overview]
Message-ID: <1627531467.8907313e7ca1d065b9d49a29afeade02ea8a49b8.gyakovlev@gentoo> (raw)

commit:     8907313e7ca1d065b9d49a29afeade02ea8a49b8
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 29 03:57:28 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Jul 29 04:04:27 2021 +0000
URL:        https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=8907313e

init.d/fixinittab: auto-enable arm64 ttyAMA0 console

our sysvinit package adds the following line in /etc/inittab on arm64:

 f0:12345:respawn:/sbin/agetty 9600 ttyAMA0 vt100

adjust fixinittab to comment out that entry, and automatically
configure console on ttyAMA0 with proper baud rate returned by stty.

if the line is left uncommented init will spawn a reular login on that
console, that may conflict with console= option user passed.

if the user passes console=***, automatic configuration is omitted.

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 init.d/fixinittab | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/init.d/fixinittab b/init.d/fixinittab
index 5c893cd..2b43021 100644
--- a/init.d/fixinittab
+++ b/init.d/fixinittab
@@ -23,10 +23,11 @@ start()
 	sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab
 	sed -i -e '/^s[01]/ s/^/#/' /etc/inittab
 	sed -i -e '/^b0/ s/^/#/' /etc/inittab
+	sed -i -e '/^f0/ s/^/#/' /etc/inittab
 
 	if [ -z "${LIVECD_CONSOLE}" ]
 	then
-		for c in hvc0 ttyHV0
+		for c in hvc0 ttyHV0 ttyAMA0
 		do
 			if [ -c "/dev/${c}" ]
 			then


             reply	other threads:[~2021-07-29  4:05 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29  4:05 Georgy Yakovlev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-27 16:57 [gentoo-commits] proj/livecd-tools:master commit in: init.d/ Ben Kohler
2021-02-25 23:12 Ben Kohler
2020-11-06  0:58 Matt Turner
2020-11-06  0:29 Matt Turner
2020-11-05 23:49 Matt Turner
2020-11-05 23:49 Matt Turner
2020-11-05 23:49 Matt Turner
2020-04-23 18:08 Rick Farina
2019-09-20 19:32 Matt Turner
2019-09-20 19:32 Matt Turner
2018-09-14  5:27 Matt Turner
2018-08-24 14:57 Richard Farina
2018-03-16  1:07 Richard Farina
2018-03-15 18:49 Richard Farina
2018-03-15 17:07 Richard Farina
2018-03-15  4:34 William Hubbs
2018-03-15  3:51 Richard Farina
2017-08-28 18:43 Richard Farina
2017-02-25  0:50 Robin H. Johnson
2016-07-09  4:27 William Hubbs
2015-12-11 17:53 William Hubbs
2015-12-11 17:53 William Hubbs
2015-11-01 20:44 Richard Farina
2014-05-22 16:30 Richard Farina
2013-07-05 21:55 William Hubbs
2013-07-05 21:46 William Hubbs
2013-01-03 18:20 William Hubbs
2012-10-03 14:17 William Hubbs
2011-10-25  2:37 William Hubbs
2011-09-19  1:41 Jorge Manuel B. S. Vicetto
2011-06-30 20:29 William Hubbs
2011-06-30 20:12 William Hubbs
2011-06-28  5:22 William Hubbs
2011-06-28  5:18 William Hubbs
2011-06-28  5:13 William Hubbs
2011-05-01  3:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs
2011-05-01  2:49 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1627531467.8907313e7ca1d065b9d49a29afeade02ea8a49b8.gyakovlev@gentoo \
    --to=gyakovlev@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox