summaryrefslogtreecommitdiff
path: root/sysvinit/sysvinit_2.85.oe
diff options
context:
space:
mode:
authorerich@mine.nu <erich@mine.nu>2004-04-11 17:24:39 +0000
committererich@mine.nu <erich@mine.nu>2004-04-11 17:24:39 +0000
commite05bab5e42dd28da8755b28d1581f6e529f8d27e (patch)
tree10c554b6f8b550be8306bada756e6eade076ced5 /sysvinit/sysvinit_2.85.oe
parent9d3edbd7b1780fe670eae68e15011c8798efd19a (diff)
patch adds support for a serial console in inittab, if selected in MACHINE.conf.
BKrev: 40797f57f4FUiq-i9DN9Qvs0yWt7Gg
Diffstat (limited to 'sysvinit/sysvinit_2.85.oe')
-rw-r--r--sysvinit/sysvinit_2.85.oe3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysvinit/sysvinit_2.85.oe b/sysvinit/sysvinit_2.85.oe
index de12ca9d8b..182a93a3dd 100644
--- a/sysvinit/sysvinit_2.85.oe
+++ b/sysvinit/sysvinit_2.85.oe
@@ -42,6 +42,9 @@ do_install () {
else
install -m 0644 ${FILESDIR}/inittab ${D}/etc/inittab
fi
+ if [ ! -z "${SERIAL_CONSOLE}" ]; then
+ echo "S:2345:respawn:/sbin/getty ${SERIAL_CONSOLE}" >> ${D}/etc/inittab
+ fi
install -m 0644 ${FILESDIR}/rcS-default ${D}/etc/default/rcS
install -m 0755 ${FILESDIR}/rc ${D}/etc/init.d
install -m 0755 ${FILESDIR}/rcS ${D}/etc/init.d