misc/166321: devd rule is not processed

Stefan Balu balustefan at gmail.com
Sat Mar 24 11:30:15 UTC 2012


The following reply was made to PR misc/166321; it has been noted by GNATS.

From: Stefan Balu <balustefan at gmail.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: misc/166321: devd rule is not processed
Date: Sat, 24 Mar 2012 13:29:40 +0200

 --047d7b15aacbf898ef04bbfb74a0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 I finally got it working using the following `nut.conf` configuration:
 
 notify 100 {
 match "system" "USB";
 match "subsystem" "INTERFACE";
 match "type" "ATTACH";
 match "vendor" "0x0665";
 match "product" "0x5161";
 action "chown -LR uucp:operator /dev/$cdev";
 };
 
 I belive it works because of `chown`'s -LR cmd-line options. Thing is, that
 using `logger` as `action` did log stuff, so the rules did seem to match
 ... however, the ownership was not set.
 
 --=20
 =C8=98tefan B=C4=82LU
 Tel: +40757 377 489
 
 --047d7b15aacbf898ef04bbfb74a0
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <span style>I finally got it working using the following `nut.conf` configu=
 ration:</span><div style><br></div><div style><div>notify 100 {</div><div><=
 span style=3D"white-space:pre-wrap">	</span>match &quot;system&quot; &quot;=
 USB&quot;;</div>
 <div><span style=3D"white-space:pre-wrap">	</span>match &quot;subsystem&quo=
 t; &quot;INTERFACE&quot;;</div><div><span style=3D"white-space:pre-wrap">	<=
 /span>match &quot;type&quot; &quot;ATTACH&quot;;</div><div class=3D"im" sty=
 le=3D"color:rgb(80,0,80)">
 <div><span style=3D"white-space:pre-wrap">	</span>match &quot;vendor&quot; =
 &quot;0x0665&quot;;</div><div><span style=3D"white-space:pre-wrap">	</span>=
 match &quot;product&quot; &quot;0x5161&quot;;</div></div><div><span style=
 =3D"white-space:pre-wrap">	</span>action &quot;chown -LR uucp:operator /dev=
 /$cdev&quot;;</div>
 <div>};</div><div><br></div><div>I belive it works because of `chown`&#39;s=
  -LR cmd-line options. Thing is, that using `logger` as `action` did log st=
 uff, so the rules did seem to match ... however, the ownership was not set.=
 </div>
 </div><div><br></div>-- <br>=C8=98tefan B=C4=82LU<br>Tel: +40757 377 489<br=
 >
 
 --047d7b15aacbf898ef04bbfb74a0--


More information about the freebsd-bugs mailing list