How to auto-detect a USB drive?
rsmith at xs4all.nl
Wed Mar 11 11:15:43 PDT 2009
On Wed, Mar 11, 2009 at 10:49:18AM -0700, Peter Steele wrote:
> >Last week I submitted a patch to get this system and subsystem
> >documented in the manual page of devd.conf. It should be in CURRENT now,
> >and will be MFC'd to STABLE in a week or so.
> This looks like exactly what we need, except we're using 7.0, and are
> too close to releasing 1.0 of our software to make a switch to 7.1
> now (QA would want to run weeks of testing).
An alternative solution is to run a script from a cron job that checks
for the labeled device and performs the necessary actions if found.
It could mean that you have to wait up to a minute (the minimum
granularity of cron) for the process to start. You have to make sure
that the script fails gracefully if it is started while a previous
instance is still running!
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090311/e6fede7a/attachment.pgp
More information about the freebsd-questions