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

Last change on this file since baa4780 was 1f35837, checked in by Maarten Lankhorst <mlankhorst@…>, 15 years ago

book: Fix mdev.conf

  • 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
36# Symlinks:
37# Syntax: %s -> %s
38
39MAKEDEV -> ../sbin/MAKEDEV
40/proc/core -> kcore
41fd -> /proc/self/fd
42mcdx -> mcdx0
43radio -> radio0
44ram -> ram1
45sbpcd -> sbpcd0
46sr0 -> scd0
47sr1 -> scd1
48sr10 -> scd10
49sr11 -> scd11
50sr12 -> scd12
51sr13 -> scd13
52sr14 -> scd14
53sr15 -> scd15
54sr16 -> scd16
55sr2 -> scd2
56sr3 -> scd3
57sr4 -> scd4
58sr5 -> scd5
59sr6 -> scd6
60sr7 -> scd7
61sr8 -> scd8
62sr9 -> scd9
63stderr -> fd/2
64stdin -> fd/0
65stdout -> fd/1
66
67# Remove these devices, if using a headless system
68# You will see an error mdev: Bad line 35
69vbi -> vbi0
70vcs -> vcs0
71vcsa -> vcsa0
72video -> video0
73# Stop Remove for headless system
74
75# Devices:
76# Syntax: %s %d:%d %s
77# devices user:group mode
78
79null 0:0 777
80zero 0:0 666
81
82urandom 0:0 444
83
84console 0:5 0600
85fd0 0:11 0660
86hdc 0:6 0660
87kmem 0:9 000
88mem 0:9 0640
89port 0:9 0640
90ptmx 0:5 0660
91tun[0-9]* 0:0 0640 =net/
92
93sda* 0:6 0660
94sdb* 0:6 0660
95hda* 0:6 0660
96hdb* 0:6 0660
97
98tty 0:5 0660
99tty0* 0:5 0660
100tty1* 0:5 0660
101tty2* 0:5 0660
102tty3* 0:5 0660
103tty4* 0:5 0660
104tty5* 0:5 0660
105tty6* 0:5 0660
106
107ttyS* 0:20 640</literal>
108EOF</userinput></screen>
109
110 </sect2>
111
112</sect1>
113
Note: See TracBrowser for help on using the repository browser.