Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/
Date: Fri, 14 Sep 2018 05:27:10
Message-Id: 1536902805.098ff810778e35116ccc2ee37cf8912c3cb486c7.mattst88@gentoo
1 commit: 098ff810778e35116ccc2ee37cf8912c3cb486c7
2 Author: Luca Barbato <lu_zero <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 18 07:36:49 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 14 05:26:45 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=098ff810
7
8 ppc: Move the hvc0 console logic outside
9
10 Make so also ppc64le is supported and allow to override its
11 configuration by specifying another console as kernel param.
12
13 init.d/fixinittab | 20 ++++++++++----------
14 1 file changed, 10 insertions(+), 10 deletions(-)
15
16 diff --git a/init.d/fixinittab b/init.d/fixinittab
17 index de3a12f..4491217 100644
18 --- a/init.d/fixinittab
19 +++ b/init.d/fixinittab
20 @@ -31,7 +31,7 @@ start()
21 sed -i -e '/^b0/ s/^/#/' /etc/inittab
22
23 # SPARC & HPPA console magic
24 - if [ "${HOSTTYPE}" = "sparc" -o "${HOSTTYPE}" = "hppa" -o "${HOSTTYPE}" = "ppc64" ]
25 + if [ "${HOSTTYPE}" = "sparc" -o "${HOSTTYPE}" = "hppa" ]
26 then
27 # Mount openprom tree for user debugging purposes
28 if [ "${HOSTTYPE}" = "sparc" ]
29 @@ -69,15 +69,6 @@ start()
30 done
31 fi
32 fi
33 - if [ -c "/dev/hvc0" ]
34 - then
35 - eindent
36 - ebegin "Adding hvc console to inittab ..."
37 - echo "s0:12345:respawn:/sbin/agetty -a root 9600 hvc0 vt320" >> /etc/inittab
38 - eend $?
39 - eoutdent
40 - fi
41 -
42 # The rest...
43 else
44 if [ "${LIVECD_CONSOLE}" = "tty0" -o "${LIVECD_CONSOLE}" = "" ]
45 @@ -103,6 +94,15 @@ start()
46 fi
47 fi
48
49 + if [ -c "/dev/hvc0" -a "${LIVECD_CONSOLE}" = "" ]
50 + then
51 + eindent
52 + ebegin "Adding hvc console to inittab ..."
53 + echo "s0:12345:respawn:/sbin/agetty -a root 9600 hvc0 vt320" >> /etc/inittab
54 + eend $?
55 + eoutdent
56 + fi
57 +
58 # EFI-based machines should automatically hook up their console lines
59 if dmesg | grep -q '^Adding console on'
60 then