diff options
author | Richard Hughes <richard@hughsie.com> | 2011-01-14 22:08:59 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-01-14 22:08:59 +0000 |
commit | 425681db29143303f07f37cbef15d63fbd9f520e (patch) | |
tree | 229e74e72771dbb08b183fd6a58e7b0be7cc1386 /rules | |
parent | 74e7fcbc1fa716f1d2dc194432788a7184cfa8a8 (diff) | |
download | colord-425681db29143303f07f37cbef15d63fbd9f520e.tar.gz |
Add and remove UDEV devices as colord devices
At the moment we're only tracking v4l devices, but more to come.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/95-cd-devices.rules | 18 | ||||
-rw-r--r-- | rules/Makefile.am | 6 |
2 files changed, 24 insertions, 0 deletions
diff --git a/rules/95-cd-devices.rules b/rules/95-cd-devices.rules new file mode 100644 index 0000000..e7e6b5e --- /dev/null +++ b/rules/95-cd-devices.rules @@ -0,0 +1,18 @@ +######################################################################## +# Copyright (C) 2009-2011 Richard Hughes <richard@hughsie.com> +# +# Licensed under the GNU General Public License Version 2 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# Devices that may have profiles. +# +# These are properties defining the behavior: +# COLORD_DEVICE Can be assinged a profile +# COLORD_KIND The kind of device + +# video cameras +SUBSYSTEM=="video4linux", ENV{ID_V4L_PRODUCT}!="", ENV{COLORD_DEVICE}="1", ENV{COLORD_KIND}="camera" diff --git a/rules/Makefile.am b/rules/Makefile.am new file mode 100644 index 0000000..8d751f4 --- /dev/null +++ b/rules/Makefile.am @@ -0,0 +1,6 @@ +udevrulesdir = $(slashlibdir)/udev/rules.d +udevrules_DATA = \ + 95-cd-devices.rules + +EXTRA_DIST = \ + $(udevrules_DATA) |