My €.02: It's a pity that udev's inotify mechanism doesn't appear to detect the libccid package's rules appearing, automatically. This is probably because it's watching the user rules directory, not the system one..
Either of these could solve this elegantly, for everyone: - udev watches system dir also - ccid package installs rules in user dir - reload udev rules after installing ccid We're packaging stuff with dependecy on pcsclite, which has a dependency on ccid, we intend to reload udev rules as post-install script, because it's our last missing link to achieve "just works" for our Linux users, and without it we would have to ask them to reboot (bummer) or to go type udev commands. Ideally, this should be done in the postinstall of the ccid package, though. We could contribute this, once we get it right, or.. Ludovic, is there a reason why we shouldn't, or why packagers haven't added this to the libccid packages for their distros, that you know of? -f On 10/16/2012 01:21 PM, Ludovic Rousseau wrote: > 2012/10/16 helpcrypto helpcrypto <[email protected]>: >> On Thu, Oct 11, 2012 at 3:37 PM, Ludovic Rousseau >> <[email protected]> wrote: >>>> I havent restarted yet (to check if the reader start working), but >>>> would like to know if theres is something I can do to detect and use >>>> the reader (without rebooting). >>> Replug your reader after installing libccid so that the udev rule file >>> is executed. >>> You may also have to reboot. >> Replug didnt work, restart did. >> Why should I restart? It wont be possible to be hotplug? >> (sorry for the cross-post, but tought it was interesting to all) > The libccid package installs a udev rule file to change the access > rights of the USB device. > This rule file is examied at device plug so you need to replug the > reader _after_ the file is installed. > This rule file is examined by udev so you (may) have to "restart" > udev, or simply reboot. > > Bye > _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
