Hi, I got udev to start an ifdhandler once I inserted an omnikey cardman 4040. Here is the howto, I will clean this up and integrate a nice version into next openct release. also note: currently the ifdhandler does not quit when the card reader is removed. if you kill it you can unmount the module and everything is fine. maybe harald knows what to do.
also note: there is no coldplugging with this. you could either somehow trigger udev events (ls /sys/class/cardman_4040/ |while read A; do echo 1 > $A/uevent - or something like that), or simply run one ifdhandler for each /dev/cmx* device found at bootup. anyway, the howto so far below. if you give it a try, please let me know if it works for you or what problems you are facing or how we can improve the situation. Thanks, Andreas mkdir /etc/hotplug/pcmcia/ cat > /etc/hotplug/pcmcia/openct <<EOF #!/bin/sh test "$ACTION" = "add" || exit 0 test -n "$DEVNAME" || exit 0 test -e /var/run/openct/status || exit 0 if [ -n "$DEVNAME" ] then /usr/sbin/ifdhandler -H -r0 ccid pcmcia_block:$DEVNAME exit 0 fi EOF chmod 0755 /etc/hotplug/pcmcia/openct cat >> /etc/udev/rules.d/95-openct.rules <<EOF # udev pcmcia rules file for openct # BUS!="usb", ACTION!="add", GOTO="openct_pcmcia_rules_end" # omnikey cardman 4040 SUBSYSTEM=="cardman_4040", RUN+="/etc/hotplug/pcmcia/openct" LABEL="openct_pcmcia_rules_end" EOF _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel