From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 25 09:03:34 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF9D0797 for ; Wed, 25 Feb 2015 09:03:34 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C5C334F for ; Wed, 25 Feb 2015 09:03:34 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1P93Ytu003037 for ; Wed, 25 Feb 2015 09:03:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198019] [PATCH]: FreeBSD 10.1 fix for comms/telldus-core Date: Wed, 25 Feb 2015 09:03:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: johan@stromnet.se X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 09:03:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198019 --- Comment #7 from johan@stromnet.se --- I'm actually already doing that. The full script looks like this: attach 10 { device-name "uftdi[0-9]+"; match "vendor" "0x1781"; match "product" "0x0c30"; # Devd variable $bus and $devaddr ought to be what we want to ident= ify /dev/ugenN.N. # Unfortunately devd overwrites $bus: # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198015 # # Use this workaround instead.. Find device by serial and use that device name. -B14 should be stable:=20 #=20=20=20=20=20=20 https://github.com/freebsd/freebsd/blob/master/usr.sbin/usbconfig/dump.c#L3= 95 #=20=20=20=20=20=20 https://github.com/freebsd/freebsd/blob/master/lib/libusb/libusb20_desc.h#L= 220 # # $=C2=A0usbconfig dump_device_desc | grep $sernum -B14|grep ugen # ugen0.2: at usbus0, cfg=3D0 md=3DHOST spd=3DF= ULL (12Mbps) pwr=3DON (90mA) # # Old command: # action "chgrp dialer /dev/ugen$bus.$devaddr; chmod 660 /dev/ugen$bus.$devaddr; action "dev=3D`usbconfig dump_device_desc | grep $sernum -B14|grep ugen|cut -f1 -d':'`; chgrp dialer /dev/$$dev; chmod 660 /dev/$$dev; /usr/local/sbin/tdadmin --pid $product --vid $vendor --seri= al $sernum controller connect"; }; There is no $cdev variable provided. The event processed (same as reported = in ticket 198015): Processing event '+uftdi0 at bus=3D0 hubaddr=3D1 port=3D3 devaddr=3D2 inter= face=3D0 vendor=3D0x1781 product=3D0x0c30 devclass=3D0x00 devsubclass=3D0x00 sernum= =3D"XXXXXX" release=3D0x0600 mode=3Dhost intclass=3D0xff intsubclass=3D0xff intprotocol= =3D0xff=20 ttyname=3DU0 ttyports=3D1 on uhub1' Verified with: action "echo cdev for $sernum is x $cdev x" Output: Executing 'echo cdev for XXXX is x x' cdev for XXXX is x x --=20 You are receiving this mail because: You are the assignee for the bug.=