diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-03 22:30:05 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-03 22:30:05 +0100 |
commit | e1cc6b6a81f9ed64e29eea5ccbe79616a220ee9f (patch) | |
tree | d7b8aeca61ebd4f4600716e3e9b6a3e2f8277239 /rules | |
parent | 8553cf06b93739c859534a85cc7ef1bdd8e33a5c (diff) |
rules: replace DVB shell script rule
Diffstat (limited to 'rules')
-rw-r--r-- | rules/rules.d/50-udev-default.rules | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rules/rules.d/50-udev-default.rules b/rules/rules.d/50-udev-default.rules index b2b2ee949f..38e1aa6b15 100644 --- a/rules/rules.d/50-udev-default.rules +++ b/rules/rules.d/50-udev-default.rules @@ -39,8 +39,9 @@ KERNEL=="pmu", GROUP="video" KERNEL=="nvidia*|nvidiactl*", GROUP="video" SUBSYSTEM=="graphics", GROUP="video" -# DVB video -SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video" +# DVB (video) +SUBSYSTEM=="dvb", ENV{DVB_ADAPTER_NUM}=="?*", NAME="dvb/adapter$env{DVB_ADAPTER_NUM}/$env{DVB_DEVICE_TYPE}$env{DVB_DEVICE_NUM}", GROUP="video" +SUBSYSTEM=="dvb", ENV{DVB_ADAPTER_NUM}=="", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video" # Firewire KERNEL=="dv1394[0-9]*", NAME="dv1394/%n", GROUP="video" |