blob: 36ffb6f1688dfab393b09b49e8bdbc0447f19788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
diff -urN rc-scripts-1.4.16.orig/bin/bashlogin rc-scripts-1.4.16/bin/bashlogin
--- rc-scripts-1.4.16.orig/bin/bashlogin 2004-05-15 22:16:32.000000000 -0400
+++ rc-scripts-1.4.16/bin/bashlogin 2005-03-23 10:00:23.000000000 -0500
@@ -6,4 +6,6 @@
cat /etc/motd 2>/dev/null
cd /root
+[ -e .bashrc ] && source .bashrc
+[ -e .bash_profile ] && source .bash_profile
exec -l /bin/bash
diff -urN rc-scripts-1.4.16.orig/sbin/livecd-functions.sh rc-scripts-1.4.16/sbin/livecd-functions.sh
--- rc-scripts-1.4.16.orig/sbin/livecd-functions.sh 2004-05-21 11:22:12.000000000 -0400
+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-23 10:01:20.000000000 -0500
@@ -42,6 +42,9 @@
14400*)
LIVECD_CONSOLE_BAUD=14400
;;
+ 19200*)
+ LIVECD_CONSOLE_BAUD=19200
+ ;;
28800*)
LIVECD_CONSOLE_BAUD=28800
;;
@@ -108,6 +111,10 @@
CDBOOT="yes"
export CDBOOT
;;
+ cdroot\=*)
+ CDBOOT="yes"
+ export CDBOOT
+ ;;
console\=*)
local live_console
live_console=`livecd_parse_opt "${x}"`
@@ -143,7 +150,7 @@
sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab
# SPARC & HPPA console magic
- if [ "${HOSTTYPE}" = "sparc" -o "${HOSTTYPE}" = "hppa" ]
+ if [ "${HOSTTYPE}" = "sparc" -o "${HOSTTYPE}" = "hppa" -o "${HOSTTYPE}" = "ppc64" ]
then
# Mount openprom tree for user debugging purposes
if [ "${HOSTTYPE}" = "sparc" ]
@@ -172,16 +179,27 @@
echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin root tty${x}" >> /etc/inittab
done
fi
+ if [ -c "/dev/hvc/0" ]
+ then
+ ln -s /dev/hvc/0 /dev/hvc0
+ echo "c0:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt220" >> /etc/inittab
+ fi
# The rest...
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 root tty${x}" >> /etc/inittab
+ echo "c${x}:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty${x} linux" >> /etc/inittab
done
else
- echo "c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
+ if [ -c "/dev/hvc/0" ]
+ then
+ ln -s /dev/hvc/0 /dev/hvc0
+ echo "c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt220" >> /etc/inittab
+ else
+ echo "c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
+ fi
fi
fi
return 0
|