Hi,

we want openct to work fine with hotplug: when some usb reader or
crypto token is inserted, it should work right away. in the past this worked
fine using the linux kernel hotplug support and the hotplug shell utilities.

distributions are moving away from the old /sbin/hotplug interface,
with the associated shell scripts in the hotplug package and all
that.

there are two replacements: hal and udev.
first I looked at hal as one developer recommended I use that one.

but I can't get hal to work. or more precise: there is no documentation
that is of any use to me (or it is hidden somewhere), and I don't know
how to tell hal: please spawn this script if you find a new usb device.

but hal does not look very interesting to me at all: it uses udev, so I
might want to use that in the first place. and it has no support for
matching, so I would have to get all events, and then sort out the ones
I'm not interested myself.

also hal is an optional package, I guess most distributions will install
it by default, but at least on kubuntu no software depends on it, so I'm
not sure about that either.

udev on the other hand is these days at the core of all recent distributions.
and there is some documentation on it and a number of users have already
tested it well. I ran into some issues, but could work around them. so now
I have a udev rule file and if I insert an usb crypto token, udev spawns 
openct.

so unless any user manages to get hal working and can tell us how to do that:
I plan to remove all references to hal and will rework the documentation to 
mention udev and hotplug only for linux.

Regards, Andreas
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to