linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hotplug scritps calling my app
@ 2002-07-07 12:34 Andreas Jellinghaus
  2002-07-08 15:46 ` David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jellinghaus @ 2002-07-07 12:34 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-08 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-07 12:34 hotplug scritps calling my app Andreas Jellinghaus
2002-07-08 15:46 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).