From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jellinghaus Date: Sun, 07 Jul 2002 12:34:35 +0000 Subject: hotplug scritps calling my app Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi. for some smartcard/token i wrote a user space application as driver. It could be installed as /sbin/hotplug on systems without the default hotplug scripts. with the default scripts, is this the right thing to do? - add entry to /etc/hotplug/usb.usermap - create directory /etc/hotplug/usb - copy my userspace driver to /et/hotplug/usb/etoken of course debian (as always) needs a special handling: add entries to /etc/hotplug/usb.usermap.local and call update-usb.usermap. i noticed a small difference in the driver called via the true hotplug <-> the init.d startup script: - DEBUG="kernel" is only set when called via kernel. - PRODUCT="0/0/0" (init.d script) versus PRODUCT="529/50c/100" (kernel) - TYPE="usb" is only set when called from kernel. - not called with any parameter (kernel and init.d script, but /sbin/hotplug is called with "usb" as parameter). are these meant to be that way? setting PRODUCT environment variable would be good IMO. I'm using debian/woody. I guess they haven't changed the hotplugs script (except the update-usb.usermap hack). The version is 0.0.20020114-7. Best regards, Andreas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek We have stuff for geeks like you. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel