From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Kadzban Date: Wed, 11 Jul 2007 02:11:47 +0000 Subject: Re: RUN Message-Id: <46943C63.2050602@kadzban.is-a-geek.net> List-Id: References: <4693ECED.9090209@inguin.com> In-Reply-To: <4693ECED.9090209@inguin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Kay Sievers wrote: > The question was how to run two programs from a _single_ rule. Would duplicate rules (with the same criteria) work? I.e., something like: BUS="scsi", ATTRS{model}="USB2FlashStorage", SYMLINK+="usbdrive", RUN+="/bin/mount /dev/usbdrive" BUS="scsi", ATTRS{model}="USB2FlashStorage", RUN+="/bin/sh /media/usbdrive/test.sh" (Where I've fixed the keys to match what udev >= 098 expects.) Assuming these fire in the same order as they're in the rules file (and multiple rules are allowed to have the same criteria), it should work for what Adam needs (I think). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGlDxgS5vET1Wea5wRAx/eAJ4o52jmBleuTl6CAy05RzTg9BmvCQCg4cSH 2MSYkpd+QMggI7Uo2vhXJ84=WzoU -----END PGP SIGNATURE----- ------------------------------------------------------------------------- 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/ _______________________________________________ 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