source: clfs-embedded/BOOK/bootscripts/common/inittab.xml@ 8704f34

Last change on this file since 8704f34 was 73d7997, checked in by Andrew Bradford <andrew@…>, 8 years ago

bootscripts/inittab: Fixup ttyS0 getty comment for clarity

Thanks to akhiezer <lfs65@…> for pointing out the incorrect
version of 'your' being used.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-scripts-inittab">
9 <?dbhtml filename="inittab.html"?>
10
11 <title>Creating /etc/inittab</title>
12
13 <indexterm zone="ch-scripts-inittab">
14 <primary sortas="e-/etc/inittab">/etc/inittab</primary>
15 </indexterm>
16
17 <para>Is the file that specifices how to boot and shutdown a system.</para>
18
19 <para os="a">Now we will create the inittab file for use with our system,
20 please note that if you'd like a login prompt on a serial console to
21 uncomment enabling of this and verify the serial port device name as
22 many embedded boards have serial ports which are not named 'ttyS':</para>
23
24<screen os="b"><userinput>cat &gt; ${CLFS}/targetfs/etc/inittab&lt;&lt; "EOF"
25<literal># /etc/inittab
26
27::sysinit:/etc/rc.d/startup
28
29tty1::respawn:/sbin/getty 38400 tty1
30tty2::respawn:/sbin/getty 38400 tty2
31tty3::respawn:/sbin/getty 38400 tty3
32tty4::respawn:/sbin/getty 38400 tty4
33tty5::respawn:/sbin/getty 38400 tty5
34tty6::respawn:/sbin/getty 38400 tty6
35
36# Put a getty on the serial line (for a terminal). Uncomment this line if
37# you're using a serial console on ttyS0, or uncomment and adjust it if using a
38# serial console on a different serial port.
39#::respawn:/sbin/getty -L ttyS0 115200 vt100
40
41::shutdown:/etc/rc.d/shutdown
42::ctrlaltdel:/sbin/reboot</literal>
43EOF</userinput></screen>
44
45</sect1>
Note: See TracBrowser for help on using the repository browser.