Date: Wed, 25 Feb 2015 09:03:34 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198019] [PATCH]: FreeBSD 10.1 fix for comms/telldus-core Message-ID: <bug-198019-13-3Lf3OWNvnf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-198019-13@https.bugs.freebsd.org/bugzilla/> References: <bug-198019-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <TellStick Telldus> 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198019-13-3Lf3OWNvnf>