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