Last change
on this file since 5470f08 was 59d0399, checked in by Andrew Bradford <andrew@…>, 11 years ago |
Update all bootscripts ch to use ${CLFS}/targetfs
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1d67150] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[1d67150] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-scripts-inittab">
|
---|
| 9 | <?dbhtml filename="inittab.html"?>
|
---|
| 10 |
|
---|
[75a41b8] | 11 | <title>Creating /etc/inittab</title>
|
---|
[1d67150] | 12 |
|
---|
| 13 | <indexterm zone="ch-scripts-inittab">
|
---|
[3ca2208] | 14 | <primary sortas="e-/etc/inittab">/etc/inittab</primary>
|
---|
[1d67150] | 15 | </indexterm>
|
---|
| 16 |
|
---|
[3ca2208] | 17 | <para>Is the file that specifices how to boot and shutdown a system.</para>
|
---|
[1d67150] | 18 |
|
---|
[3ca2208] | 19 | <para os="a">Now we will create the inittab file for use with our system:</para>
|
---|
[1d67150] | 20 |
|
---|
[59d0399] | 21 | <screen os="b"><userinput>cat > ${CLFS}/targetfs/etc/inittab<< "EOF"
|
---|
[1d67150] | 22 | <literal># /etc/inittab
|
---|
| 23 |
|
---|
| 24 | ::sysinit:/etc/rc.d/startup
|
---|
| 25 |
|
---|
| 26 | tty1::respawn:/sbin/getty 38400 tty1
|
---|
| 27 | tty2::respawn:/sbin/getty 38400 tty2
|
---|
| 28 | tty3::respawn:/sbin/getty 38400 tty3
|
---|
| 29 | tty4::respawn:/sbin/getty 38400 tty4
|
---|
| 30 | tty5::respawn:/sbin/getty 38400 tty5
|
---|
| 31 | tty6::respawn:/sbin/getty 38400 tty6
|
---|
| 32 |
|
---|
| 33 | # Put a getty on the serial line (for a terminal)
|
---|
| 34 | # uncomment this line if your using a serial console
|
---|
| 35 | #::respawn:/sbin/getty -L ttyS0 115200 vt100
|
---|
| 36 |
|
---|
| 37 | ::shutdown:/etc/rc.d/shutdown
|
---|
| 38 | ::ctrlaltdel:/sbin/reboot</literal>
|
---|
| 39 | EOF</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.