[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

rewriting hotplug scripts for udev



hi guys,

i have a cryptographic token that is handled by openct. when i start openct with token plugged to the usb port, everything works fine. however when i plug in the token later, it is not recognized and i have to restart openct to get it working.

there are 2 files in /etc/hotplug/usb.

openct:
=============
#!/bin/sh


test "$ACTION" = "add" || exit 0


if [ -e /var/run/openct/status ] then /usr/sbin/openct-control attach $DEVICE usb:$PRODUCT fi
=============

and openct.usermap containing maps for devices. since i use the new version of udev that doesn't have hotplug it seems that these files are just skipped and not read.

can anybody please help me with rewriting these as udev rules? it would be very welcome.

best regards,

--
Lubos
_@_"



Reply to: