aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/dvb/udev.txt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /Documentation/dvb/udev.txt
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'Documentation/dvb/udev.txt')
-rw-r--r--Documentation/dvb/udev.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/Documentation/dvb/udev.txt b/Documentation/dvb/udev.txt
new file mode 100644
index 000000000000..68ee224b6aae
--- /dev/null
+++ b/Documentation/dvb/udev.txt
@@ -0,0 +1,46 @@
1The DVB subsystem currently registers to the sysfs subsystem using the
2"class_simple" interface.
3
4This means that only the basic informations like module loading parameters
5are presented through sysfs. Other things that might be interesting are
6currently *not* available.
7
8Nevertheless it's now possible to add proper udev rules so that the
9DVB device nodes are created automatically.
10
11We assume that you have udev already up and running and that have been
12creating the DVB device nodes manually up to now due to the missing sysfs
13support.
14
150. Don't forget to disable your current method of creating the
16device nodes manually.
17
181. Unfortunately, you'll need a helper script to transform the kernel
19sysfs device name into the well known dvb adapter / device naming scheme.
20The script should be called "dvb.sh" and should be placed into a script
21dir where udev can execute it, most likely /etc/udev/scripts/
22
23So, create a new file /etc/udev/scripts/dvb.sh and add the following:
24------------------------------schnipp------------------------------------------------
25#!/bin/sh
26/bin/echo $1 | /bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,'
27------------------------------schnipp------------------------------------------------
28
29Don't forget to make the script executable with "chmod".
30
311. You need to create a proper udev rule that will create the device nodes
32like you know them. All real distributions out there scan the /etc/udev/rules.d
33directory for rule files. The main udev configuration file /etc/udev/udev.conf
34will tell you the directory where the rules are, most likely it's /etc/udev/rules.d/
35
36Create a new rule file in that directory called "dvb.rule" and add the following line:
37------------------------------schnipp------------------------------------------------
38KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"
39------------------------------schnipp------------------------------------------------
40
41If you want more control over the device nodes (for example a special group membership)
42have a look at "man udev".
43
44For every device that registers to the sysfs subsystem with a "dvb" prefix,
45the helper script /etc/udev/scripts/dvb.sh is invoked, which will then
46create the proper device node in your /dev/ directory.