diff options
Diffstat (limited to 'linux/Documentation')
-rw-r--r-- | linux/Documentation/dvb/udev.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/linux/Documentation/dvb/udev.txt b/linux/Documentation/dvb/udev.txt index 8ef0616ed..68ee224b6 100644 --- a/linux/Documentation/dvb/udev.txt +++ b/linux/Documentation/dvb/udev.txt @@ -28,17 +28,19 @@ So, create a new file /etc/udev/scripts/dvb.sh and add the following: Don't forget to make the script executable with "chmod". -1. You need to add a proper rule to your udev rule file. The main -udev configuration file /etc/udev/udev.conf will tell you the -directory of the rules, most likely it's /etc/udev/rules.d/ - -Edit the main rule file and add the following rule to the end -of the file. +1. You need to create a proper udev rule that will create the device nodes +like you know them. All real distributions out there scan the /etc/udev/rules.d +directory for rule files. The main udev configuration file /etc/udev/udev.conf +will tell you the directory where the rules are, most likely it's /etc/udev/rules.d/ +Create a new rule file in that directory called "dvb.rule" and add the following line: +------------------------------schnipp------------------------------------------------ KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c" +------------------------------schnipp------------------------------------------------ + +If you want more control over the device nodes (for example a special group membership) +have a look at "man udev". For every device that registers to the sysfs subsystem with a "dvb" prefix, the helper script /etc/udev/scripts/dvb.sh is invoked, which will then -create the proper device name. - -Now udev will create the device node in your /dev/ device tree. +create the proper device node in your /dev/ directory. |