source: clfs-embedded/BOOK/bootscripts/common/mdev.xml@ 128905d

Last change on this file since 128905d was 3ca2208, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Several fixes for PDF look.

  • Property mode set to 100644
File size: 2.0 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-mdev">
9 <?dbhtml filename="mdev.html"?>
10
11 <title>Configure mdev</title>
12
13 <indexterm zone="ch-scripts-mdev">
14 <primary sortas="a-mdev">mdev</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>Is a Busybox replacement of udev. With a different rule
21 base.</para>
22
23 </sect2>
24
25 <sect2>
26 <title>Creating /etc/mdev.conf</title>
27
28 <indexterm zone="ch-scripts-mdev">
29 <primary sortas="e-/etc/mdev.conf">/etc/mdev.conf</primary>
30 </indexterm>
31
32<para os="a">Now we will create the mdev.conf file for use with our system:</para>
33
34<screen os="b"><?dbfo keep-together="auto"?><userinput>cat &gt; ${CLFS}/etc/mdev.conf&lt;&lt; "EOF"
35<literal># /etc/mdev/conf
36SLEEP=10
37
38# Symlinks:
39# Syntax: %s -> %s
40
41MAKEDEV -> ../sbin/MAKEDEV
42/proc/core -> kcore
43fd -> /proc/self/fd
44mcdx -> mcdx0
45radio -> radio0
46ram -> ram1
47sbpcd -> sbpcd0
48sr0 -> scd0
49sr1 -> scd1
50sr10 -> scd10
51sr11 -> scd11
52sr12 -> scd12
53sr13 -> scd13
54sr14 -> scd14
55sr15 -> scd15
56sr16 -> scd16
57sr2 -> scd2
58sr3 -> scd3
59sr4 -> scd4
60sr5 -> scd5
61sr6 -> scd6
62sr7 -> scd7
63sr8 -> scd8
64sr9 -> scd9
65stderr -> fd/2
66stdin -> fd/0
67stdout -> fd/1
68
69# Remove these devices, if using a headless system
70# You will see an error mdev: Bad line 35
71vbi -> vbi0
72vcs -> vcs0
73vcsa -> vcsa0
74video -> video0
75# Stop Remove for headless system
76
77# Devices:
78# Syntax: %s %d:%d %s
79# devices user:group mode
80
81null 0:0 777
82zero 0:0 666
83
84urandom 0:0 444
85
86console 0:5 0600
87fd0 0:11 0660
88hdc 0:6 0660
89kmem 0:9 000
90mem 0:9 0640
91port 0:9 0640
92ptmx 0:5 0660
93
94sda* 0:6 0660
95sdb* 0:6 0660
96hda* 0:6 0660
97hdb* 0:6 0660
98
99tty 0:5 0660
100tty0* 0:5 0660
101tty1* 0:5 0660
102tty2* 0:5 0660
103tty3* 0:5 0660
104tty4* 0:5 0660
105tty5* 0:5 0660
106tty6* 0:5 0660
107
108ttyS* 0:20 640</literal>
109EOF</userinput></screen>
110
111 </sect2>
112
113</sect1>
114
Note: See TracBrowser for help on using the repository browser.