summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-07-28 20:57:28 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-07-28 21:04:27 -0700
commit8907313e7ca1d065b9d49a29afeade02ea8a49b8 (patch)
treee5b097f8e530afb87305d232e1be3b88e9e4fa37
parentautoconfig: mostly revert "Fix logic error" (diff)
downloadlivecd-tools-8907313e.tar.gz
livecd-tools-8907313e.tar.bz2
livecd-tools-8907313e.zip
init.d/fixinittab: auto-enable arm64 ttyAMA0 console2.10
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@gentoo.org>
-rw-r--r--init.d/fixinittab3
1 files changed, 2 insertions, 1 deletions
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