From f1237b85972c7d34cfc45dead4f39ef0d52301ea Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 13 Dec 2018 14:49:16 +0000 Subject: [PATCH] Add devd rule for a Logitech gamepad. Submitted by: Rozhuk Ivan Approved by: pi@ --- multimedia/webcamd/Makefile | 1 + multimedia/webcamd/files/webcamd.conf.in | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/multimedia/webcamd/Makefile b/multimedia/webcamd/Makefile index 84a5c662b4eb..80aa4fd7be2f 100644 --- a/multimedia/webcamd/Makefile +++ b/multimedia/webcamd/Makefile @@ -3,6 +3,7 @@ PORTNAME= webcamd PORTVERSION= 4.20.0.1 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= http://www.selasky.org/hans_petter/distfiles/ \ http://home.selasky.org/distfiles/ diff --git a/multimedia/webcamd/files/webcamd.conf.in b/multimedia/webcamd/files/webcamd.conf.in index b9a05db3b03d..ae1cf86c5774 100644 --- a/multimedia/webcamd/files/webcamd.conf.in +++ b/multimedia/webcamd/files/webcamd.conf.in @@ -51,3 +51,20 @@ notify 100 { action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface"; }; + +# Logitech gamepad +notify 100 { + match "system" "USB"; + match "subsystem" "INTERFACE"; + match "type" "ATTACH"; + + match "vendor" "0x046d"; + match "product" "0xc216"; + + match "intclass" "0x03"; + match "intsubclass" "0x00"; + match "intprotocol" "0x00"; + + action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface"; +}; +