From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 22 18:30:05 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD0B6106564A for ; Thu, 22 Mar 2012 18:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBFAE8FC1D for ; Thu, 22 Mar 2012 18:30:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2MIU5X5063180 for ; Thu, 22 Mar 2012 18:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2MIU5QL063179; Thu, 22 Mar 2012 18:30:05 GMT (envelope-from gnats) Date: Thu, 22 Mar 2012 18:30:05 GMT Message-Id: <201203221830.q2MIU5QL063179@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gary Palmer Cc: Subject: Re: misc/166321: devd rule is not processed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gary Palmer List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2012 18:30:06 -0000 The following reply was made to PR misc/166321; it has been noted by GNATS. From: Gary Palmer To: Stefan BALU Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/166321: devd rule is not processed Date: Thu, 22 Mar 2012 14:24:08 -0400 On Thu, Mar 22, 2012 at 06:01:48PM +0000, Stefan BALU wrote: > I have a UPS box which works like a charm with nut (netwok-ups-tools). In order for the nut driver to properly work, it needs the `/dev/ugen*` file to be owned by `uucp`. > > In order to do this, i have a `devd(8)` configuration file in `/usr/local/etc/devd/` entitled `nut.conf`. > > [root@fw ~]# cat /usr/local/etc/devd/nut.conf > attach 100 { > match "device-name" "ugen[0-9]+"; > match "vendor" "0x0665"; > match "product" "0x5161"; > action "logger chown uucp /dev/$device-name*"; > }; > > [root@fw ~]# usbconfig dump_device_desc > .. > ugen1.3: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > The reason is in the above information. You are matching against "ugen[0-9]+" but the device is "ugen1.3". Note that [0-9]+ means one or more characters from the set of 0 through 9. No ".". Try fixing the ugen regular expression to allow for the ".". e.g. "ugen[0-9.]+" or "ugen[0-9]+.[0-9]+" Gary