udev: add dvb handling

This commit is contained in:
Johannes Winkelmann 2006-08-23 19:31:02 +00:00
parent c6e791a651
commit 2efdfb436c
5 changed files with 17 additions and 2 deletions

View File

@ -5,6 +5,7 @@ drwxr-xr-x root/root etc/udev/
drwxr-xr-x root/root etc/udev/rules.d/
-rw-r--r-- root/root etc/udev/rules.d/05-udev-early.rules
-rw-r--r-- root/root etc/udev/rules.d/25-lfs.rules
-rw-r--r-- root/root etc/udev/rules.d/26-crux.rules
-rw-r--r-- root/root etc/udev/rules.d/26-modprobe.rules
-rw-r--r-- root/root etc/udev/rules.d/27-firmware.rules
-rw-r--r-- root/root etc/udev/rules.d/60-persistent-storage.rules
@ -30,6 +31,7 @@ lrwxrwxrwx root/root lib/udev/devices/stderr -> /proc/self/fd/2
lrwxrwxrwx root/root lib/udev/devices/stdin -> /proc/self/fd/0
lrwxrwxrwx root/root lib/udev/devices/stdout -> /proc/self/fd/1
crw-rw-rw- root/root lib/udev/devices/zero (1, 5)
-rwxr-xr-x root/root lib/udev/dvb_helper
-rwxr-xr-x root/root lib/udev/edd_id
-rwxr-xr-x root/root lib/udev/firmware.sh
-rwxr-xr-x root/root lib/udev/path_id

View File

@ -1,5 +1,7 @@
c0da74341672681c9bd924439ea4e84d cdrom.rules
6c4a8bd7aef573838305e212ffb9bc6a cdsymlinks
ef01d7356869dc070029b8de9b6d4f7d crux.rules
7818c207e95af667657782ba9884a404 dvb_helper
40ab559668ab739473fa9f4a45ba28da start_udev
f4effef7807ce1dc91ab581686ef197b udev-096.tar.bz2
6ef52d52f45ca91daea3cfa840d1083b udev-config-20060715.tar.bz2

View File

@ -4,10 +4,10 @@
name=udev
version=096
release=2
release=3
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2
http://crux.nu/files/udev-config-20060715.tar.bz2
start_udev cdrom.rules cdsymlinks)
start_udev cdrom.rules cdsymlinks crux.rules dvb_helper)
build() {
cd udev-$version
@ -34,5 +34,7 @@ build() {
cp $SRC/udev-config-20060715/*.rules $PKG/etc/udev/rules.d/
install -m 0755 $SRC/start_udev $PKG/sbin
install -m 0755 $SRC/cdsymlinks $PKG/lib/udev/
install -m 0755 $SRC/dvb_helper $PKG/lib/udev/
cat $SRC/cdrom.rules >> $PKG/etc/udev/rules.d/81-cdrom.rules
cat $SRC/crux.rules >> $PKG/etc/udev/rules.d/26-crux.rules
}

4
udev/crux.rules Normal file
View File

@ -0,0 +1,4 @@
# CRUX udev rules
# DVB handling
KERNEL=="dvb*", PROGRAM="/lib/udev/dvb_helper %k", NAME="%c"

5
udev/dvb_helper Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Helper script to name dvb devices; taken from Documentation/dvb/udev.txt
/bin/echo $1 | \
/bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,'