From 446f9318161a10ef177b0a80c8ad2acc424b6454 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 16 Jun 2009 20:13:17 +0200 Subject: v4l_id: 70-v4l.rules -> 60-persistent-v4l.rules --- extras/v4l_id/60-persistent-v4l.rules | 20 ++++++++++++++++++++ extras/v4l_id/70-v4l.rules | 20 -------------------- extras/v4l_id/Makefile.am | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 extras/v4l_id/60-persistent-v4l.rules delete mode 100644 extras/v4l_id/70-v4l.rules diff --git a/extras/v4l_id/60-persistent-v4l.rules b/extras/v4l_id/60-persistent-v4l.rules new file mode 100644 index 0000000000..a342a71949 --- /dev/null +++ b/extras/v4l_id/60-persistent-v4l.rules @@ -0,0 +1,20 @@ +# do not edit this file, it will be overwritten on update + +ACTION!="add|change", GOTO="persistent_v4l_end" +SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" +ENV{MAJOR}=="", GOTO="persistent_v4l_end" + +IMPORT{program}="v4l_id $tempnode" + +SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p" +KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" + +# check for valid "index" number +TEST!="index", GOTO="persistent_v4l_end" +ATTR{index}!="?*", GOTO="persistent_v4l_end" + +IMPORT{program}="path_id %p" +ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" +ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}" + +LABEL="persistent_v4l_end" diff --git a/extras/v4l_id/70-v4l.rules b/extras/v4l_id/70-v4l.rules deleted file mode 100644 index a342a71949..0000000000 --- a/extras/v4l_id/70-v4l.rules +++ /dev/null @@ -1,20 +0,0 @@ -# do not edit this file, it will be overwritten on update - -ACTION!="add|change", GOTO="persistent_v4l_end" -SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" -ENV{MAJOR}=="", GOTO="persistent_v4l_end" - -IMPORT{program}="v4l_id $tempnode" - -SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p" -KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" - -# check for valid "index" number -TEST!="index", GOTO="persistent_v4l_end" -ATTR{index}!="?*", GOTO="persistent_v4l_end" - -IMPORT{program}="path_id %p" -ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" -ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}" - -LABEL="persistent_v4l_end" diff --git a/extras/v4l_id/Makefile.am b/extras/v4l_id/Makefile.am index 6ff9fcd630..3f8b0f75b4 100644 --- a/extras/v4l_id/Makefile.am +++ b/extras/v4l_id/Makefile.am @@ -4,6 +4,6 @@ udevhomedir = $(udev_prefix)/lib/udev udevhome_PROGRAMS = v4l_id udevrulesdir = $(udev_prefix)/lib/udev/rules.d -dist_udevrules_DATA = 70-v4l.rules +dist_udevrules_DATA = 60-persistent-v4l.rules v4l_id_SOURCES = v4l_id.c -- cgit v1.2.3-54-g00ecf