From: Andreas Jellinghaus <aj@dungeon.inka.de>
To: linux-hotplug@vger.kernel.org
Subject: hotplug scritps calling my app
Date: Sun, 07 Jul 2002 12:34:35 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-102604527812906@msgid-missing> (raw)
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
next reply other threads:[~2002-07-07 12:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-07 12:34 Andreas Jellinghaus [this message]
2002-07-08 15:46 ` hotplug scritps calling my app David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-102604527812906@msgid-missing \
--to=aj@dungeon.inka.de \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).