mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07:00
Add 27 stock rules installed to /lib/udev/rules.d/. Rules invoking /lib/udev/<helper> fall back to keventd builtins (path_id, usb_id, blkid, hwdb, kmod, net_id, input_id) when the helper binary is absent; user-supplied helpers in /lib/udev/ still take precedence. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
25 lines
916 B
Plaintext
25 lines
916 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Derived from eudev 3.2.14 rules/60-persistent-v4l.rules
|
|
# Modifications by the Finit project: none
|
|
#
|
|
# do not edit this file, it will be overwritten on update
|
|
|
|
ACTION=="remove", GOTO="persistent_v4l_end"
|
|
SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
|
|
ENV{MAJOR}=="", GOTO="persistent_v4l_end"
|
|
|
|
IMPORT{program}="v4l_id $devnode"
|
|
|
|
SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
|
|
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{builtin}="path_id"
|
|
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"
|