Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2021 08:47:31 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b12212190261 - main - multimedia/webcamd: Silence prints from rc script when webcamd is disabled.
Message-ID:  <202110120847.19C8lVbs090546@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b12212190261b8694be357bf2f052effacc06cc0

commit b12212190261b8694be357bf2f052effacc06cc0
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-10-12 08:38:15 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2021-10-12 08:46:46 +0000

    multimedia/webcamd: Silence prints from rc script when webcamd is disabled.
    
    PR:             259062
    Approved by:    pi (implicit)
---
 multimedia/webcamd/Makefile              |  2 +-
 multimedia/webcamd/files/webcamd.conf.in | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/multimedia/webcamd/Makefile b/multimedia/webcamd/Makefile
index bd91ec70c2ec..05fd6fd0b512 100644
--- a/multimedia/webcamd/Makefile
+++ b/multimedia/webcamd/Makefile
@@ -3,7 +3,7 @@
 PORTNAME=	webcamd
 DISTVERSIONPREFIX=	v
 DISTVERSION=	5.13.2.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	multimedia
 
 MAINTAINER=	hselasky@FreeBSD.org
diff --git a/multimedia/webcamd/files/webcamd.conf.in b/multimedia/webcamd/files/webcamd.conf.in
index df946c04da20..684415013cbe 100644
--- a/multimedia/webcamd/files/webcamd.conf.in
+++ b/multimedia/webcamd/files/webcamd.conf.in
@@ -4,7 +4,7 @@ notify 100 {
 	match "subsystem"	"INTERFACE";
 	match "type"		"ATTACH";
 	match "intclass"	"0x0e";
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev 2>/dev/null";
 };
 
 # Vendor specific USB webcams and DVB devices.
@@ -13,7 +13,7 @@ notify 100 {
 	match "subsystem"	"INTERFACE";
 	match "type"		"ATTACH";
 	match "intclass"	"0xff";
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev 2>/dev/null";
 };
 
 # Unspecified USB webcams and DVB devices.
@@ -22,7 +22,7 @@ notify 100 {
 	match "subsystem"	"INTERFACE";
 	match "type"		"ATTACH";
 	match "intclass"	"0x00";
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev 2>/dev/null";
 };
 
 # Logitech webcams
@@ -33,7 +33,7 @@ notify 100 {
 	match "vendor"	       "0x046d";
 	match "intclass"       "0x0a";
 	match "intsubclass"    "0xff";
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev 2>/dev/null";
 };
 
 # Generic USB input devices.
@@ -48,7 +48,7 @@ notify 100 {
 # and mouse
 #
 	match "vendor"		"0x056a";
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface 2>/dev/null";
 };
 
 # Elantech touchscreen
@@ -60,7 +60,7 @@ notify 100 {
 	match "vendor"		"0x04f3";
 	match "product"		"0x2071";
 
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface 2>/dev/null";
 };
 
 # Logitech gamepad 
@@ -72,6 +72,6 @@ notify 100 {
 	match "vendor"		"0x046d";
 	match "product"		"0xc216|0xc219";
 
-	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface";
+	action "%%PREFIX%%/etc/rc.d/webcamd start $cdev $interface 2>/dev/null";
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110120847.19C8lVbs090546>