Date: Wed, 11 Mar 2009 19:15:37 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Peter Steele <psteele@maxiscale.com> Cc: questions@freebsd.org Subject: Re: How to auto-detect a USB drive? Message-ID: <20090311181537.GC67007@slackbox.xs4all.nl> In-Reply-To: <27422526.801236793758736.JavaMail.HALO$@halo> References: <20090311174304.GA67007@slackbox.xs4all.nl> <27422526.801236793758736.JavaMail.HALO$@halo>
next in thread | previous in thread | raw e-mail | index | archive | help
--O3RTKUHj+75w1tg5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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! Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --O3RTKUHj+75w1tg5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkm3/8kACgkQEnfvsMMhpyUHnQCdG3dBRMkjjtvXfZ+cRaleV+rb OFUAn3C9pCHd7HNZwjqrhz12WMRX2SEC =GZtR -----END PGP SIGNATURE----- --O3RTKUHj+75w1tg5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090311181537.GC67007>