diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-10-26 12:17:27 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-10-27 00:14:41 +0200 |
commit | e78e11d8c59727aee2e6f03ce413ee73193e1937 (patch) | |
tree | 41ceddb27aa0747a591abeb96d85c14a1bfcc122 /rules.d | |
parent | hwdb: Allow console users access to media* nodes (diff) | |
download | systemd-e78e11d8c59727aee2e6f03ce413ee73193e1937.tar.xz systemd-e78e11d8c59727aee2e6f03ce413ee73193e1937.zip |
hwdb: Tag IR cameras as such
So that front-ends can ignore them if they wish to.
See https://gitlab.gnome.org/GNOME/cheese/-/merge_requests/4
Diffstat (limited to 'rules.d')
-rw-r--r-- | rules.d/70-camera.rules | 9 | ||||
-rw-r--r-- | rules.d/meson.build | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/rules.d/70-camera.rules b/rules.d/70-camera.rules new file mode 100644 index 0000000000..b1053f2cbb --- /dev/null +++ b/rules.d/70-camera.rules @@ -0,0 +1,9 @@ +# do not edit this file, it will be overwritten on update + +ACTION=="remove", GOTO="camera_end" + +SUBSYSTEM=="video4linux", ENV{ID_BUS}="usb" , \ + IMPORT{builtin}="hwdb 'camera:usb:v$env{ID_VENDOR_ID}p$env{ID_MODEL_ID}:name:$attr{name}:'", \ + GOTO="camera_end" + +LABEL="camera_end" diff --git a/rules.d/meson.build b/rules.d/meson.build index 598649a562..05c55a6b41 100644 --- a/rules.d/meson.build +++ b/rules.d/meson.build @@ -19,6 +19,7 @@ rules = files(''' 60-persistent-v4l.rules 60-sensor.rules 60-serial.rules + 70-camera.rules 70-joystick.rules 70-mouse.rules 70-touchpad.rules |