From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott James Remnant Date: Wed, 11 Jul 2007 08:36:24 +0000 Subject: Re: RUN Message-Id: <1184142984.10213.7.camel@wing-commander> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0206213885==" List-Id: References: <4693ECED.9090209@inguin.com> In-Reply-To: <4693ECED.9090209@inguin.com> To: linux-hotplug@vger.kernel.org --===============0206213885== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-RnQByq32fvRgHAhVpckm" --=-RnQByq32fvRgHAhVpckm Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2007-07-10 at 22:11 -0400, Bryan Kadzban wrote: > Kay Sievers wrote: > > The question was how to run two programs from a _single_ rule. >=20 > Would duplicate rules (with the same criteria) work? I.e., something > like: >=20 > BUS=3D=3D"scsi", ATTRS{model}=3D=3D"USB2FlashStorage", SYMLINK+=3D"usbdri= ve", > RUN+=3D"/bin/mount /dev/usbdrive" > BUS=3D=3D"scsi", ATTRS{model}=3D=3D"USB2FlashStorage", RUN+=3D"/bin/sh > /media/usbdrive/test.sh" >=20 > (Where I've fixed the keys to match what udev >=3D 098 expects.) >=20 You could also use a GOTO/LABEL combination BUS!=3D"scsi", GOTO=3D"usbdrive_end" ATTRS{model}!=3D"USB2FlashStorage", GOTO=3D"usbdrive_end" SYMLINK+=3D"usbdrive" RUN+=3D"/bin/mount /dev/usbdrive" RUN+=3D"/bin/sh /media/usbdrive/test.sh" LABEL=3D"usbdrive_end" Scott --=20 Scott James Remnant Ubuntu Development Manager scott@ubuntu.com --=-RnQByq32fvRgHAhVpckm Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGlJaISnQiFMl4yK4RAme2AJ9AiUPBJVHkQnGGQhCzIa7MEjCg3gCfbkC8 T5jcURiSo7SJU41bnRrY9Rs= =oMPS -----END PGP SIGNATURE----- --=-RnQByq32fvRgHAhVpckm-- --===============0206213885== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============0206213885== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0206213885==--