Since updating my systems to 9-Stable, I am not getting my smartcard reader attached when hot-plugged.>From devd.confattach 50 { device-name "ugen[0-9]+"; match "vendor" "0x0529"; match "product" "0x0600"; action "/usr/local/sbin/openct-control attach usb:529/600 usb /dev/$dev$ }; detach 50 { device-name "ugen[0-9]+"; match "vendor" "0x0529"; match "product" "0x0600"; action "/usr/bin/pkill -fx '/usr/local/sbin/ifdhandler -H -p [a-z0-9]+ $ }; If I manually enter the "action" command, it works fine, but it fails when I insert the device. It worked fine under version 8. I have confirmed devd is seeing the device inserted just fine. the action just does not seem to be carried out. Any idea where I should look? I saw a couple of threads on current from others seeing something similar, but could find no resolution. I have seen a -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com
On Thu, 14 Jun 2012 02:41:58 +0200, Kevin Oberman <kob6558@gmail.com> wrote:> Since updating my systems to 9-Stable, I am not getting my smartcard > reader attached when hot-plugged. > >> From devd.conf > attach 50 { > device-name "ugen[0-9]+"; > match "vendor" "0x0529"; > match "product" "0x0600"; > action "/usr/local/sbin/openct-control attach usb:529/600 usb > /dev/$dev$ > }; > detach 50 { > device-name "ugen[0-9]+"; > match "vendor" "0x0529"; > match "product" "0x0600"; > action "/usr/bin/pkill -fx '/usr/local/sbin/ifdhandler -H -p > [a-z0-9]+ $ > }; > > If I manually enter the "action" command, it works fine, but it fails > when I insert the device. It worked fine under version 8. I have > confirmed devd is seeing the device inserted just fine. the action > just does not seem to be carried out. > > Any idea where I should look? I saw a couple of threads on current > from others seeing something similar, but could find no resolution. > I have seen aDid you run devd with debug messages on? Options -D and -d are helpful. If you do does devd match the right devd.conf sections and start the action? Ronald.
Kevin Oberman wrote:
> Since updating my systems to 9-Stable, I am not getting my smartcard
> reader attached when hot-plugged.
>
> > From devd.conf
> attach 50 {
> device-name "ugen[0-9]+";
> match "vendor" "0x0529";
> match "product" "0x0600";
> action "/usr/local/sbin/openct-control attach usb:529/600 usb
/dev/$dev$
> };
> detach 50 {
> device-name "ugen[0-9]+";
> match "vendor" "0x0529";
> match "product" "0x0600";
> action "/usr/bin/pkill -fx '/usr/local/sbin/ifdhandler -H
-p [a-z0-9]+ $
> };
Maybe the device-name doesn't match. The ugen names contain
a dot ("ugenX.Y"), so "ugen[0-9]+" won't match if the
regular
expression is anchored (the manual page isn't clear about
that, unfortunately, but the examples suggest that it is
indeed anchored). Besides, the /dev/ugen* names are only
symlinks to the real entries in /dev/usb/X.Y.Z.
It might be worth a try to just comment out the device-name
lines.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n-
chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
"[...] one observation we can make here is that Python makes
an excellent pseudocoding language, with the wonderful attribute
that it can actually be executed." -- Bruce Eckel