Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Nov 2014 08:22:50 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r272820 - head/etc/devd
Message-ID:  <5459D04A.1080204@selasky.org>
In-Reply-To: <20141104233123.GA7135@FreeBSD.org>
References:  <201410091358.s99DwKA2097240@svn.freebsd.org> <20141104233123.GA7135@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/05/14 00:31, Alexey Dokuchaev wrote:
> On Thu, Oct 09, 2014 at 01:58:20PM +0000, Hans Petter Selasky wrote:
>> New Revision: 272820
>> URL: https://svnweb.freebsd.org/changeset/base/272820
>>
>> Log:
>>    Add example devd configuration file for USB printers.
>>
>> +# Generic USB printer devices
>> +#notify 100 {
>> +#	match "system"		"USB";
>> +#	match "subsystem"	"INTERFACE";
>> +#	match "type"		"ATTACH";
>> +#	match "intclass"	"0x07";
>> +#	match "intsubclass"	"0x01";
>> +#	match "intprotocol"	"(0x01|0x02|0x03)";
>> +#	action "chown root:wheel /dev/$cdev";
>
> Calling chown(8) looks weird for two reasons: 1) root:wheel arguably should
> already be the default, and 2) device node credentials and permissions are
> usually set via devfs.rules(5).
>
> ./danfe
>
>

Hi,

This file is just an example and bandaid for those that want to 
integrate USB printers with cups. For real use you would need to 
substitute root:wheel with cups:cups or something like that.

We possibly need a printer class, maybe just create cups:cups from the 
start?

--HPS



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