The following reply was made to PR misc/166321; it has been noted by GNATS.
From: Stefan Balu <[email protected]> To: [email protected] 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 "system" "= USB";</div> <div><span style=3D"white-space:pre-wrap"> </span>match "subsystem&quo= t; "INTERFACE";</div><div><span style=3D"white-space:pre-wrap"> <= /span>match "type" "ATTACH";</div><div class=3D"im" sty= le=3D"color:rgb(80,0,80)"> <div><span style=3D"white-space:pre-wrap"> </span>match "vendor" = "0x0665";</div><div><span style=3D"white-space:pre-wrap"> </span>= match "product" "0x5161";</div></div><div><span style= =3D"white-space:pre-wrap"> </span>action "chown -LR uucp:operator /dev= /$cdev";</div> <div>};</div><div><br></div><div>I belive it works because of `chown`'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-- _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
