All of lore.kernel.org
 help / color / mirror / Atom feed
* RUN
@ 2007-07-10 20:32 Adam Kane
  2007-07-10 22:01 ` RUN Bauke Jan Douma
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Adam Kane @ 2007-07-10 20:32 UTC (permalink / raw)
  To: linux-hotplug

Hi list,

Is it possible to use more than one RUN+= statement in a udev line, or 
execute more than one thing?  I am wanting to execute more than one 
thing upon my usb key being plugged in.

Here is what I have in udev.rules

BUS="scsi", SYSFS{model}="USB2FlashStorage", SYMLINK="usbdrive", 
RUN+="/bin/mount /dev/usbdrive"

The RUN+ statement is mounting the drive to /media/usbdrive, as 
specified in the /etc/fstab.  I would like to to also run "/bin/sh 
/media/usbdrive/test.sh"

I have tried the following with no success:

BUS="scsi", SYSFS{model}="USB2FlashStorage", SYMLINK="usbdrive", 
RUN+="/bin/mount /dev/usbdrive ; /bin/sh /media/usbdrive/test.sh"


BUS="scsi", SYSFS{model}="USB2FlashStorage", SYMLINK="usbdrive", 
RUN+="/bin/mount /dev/usbdrive && /bin/sh /media/usbdrive/test.sh"


BUS="scsi", SYSFS{model}="USB2FlashStorage", SYMLINK="usbdrive", 
RUN+="/bin/mount /dev/usbdrive", RUN+="/bin/sh /media/usbdrive/test.sh"


Hope this makes sense.

Thanks in advance,

Adam Kane

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* run
@ 2006-11-18 22:05 iPod
  0 siblings, 0 replies; 11+ messages in thread
From: iPod @ 2006-11-18 22:05 UTC (permalink / raw)
  To: kernel-janitors


[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]

Stocks Quotes in attachement

Web topapplies Xboxback is kbxboxext.
Switch to Advanced Article Chinese Related Numbers in Options Pricing.
Toolsprint this am pageemail!
Industry time extends pending gap still must.
Planes orb aims beat of.
Fixes Submit Cheatsnews Advertise Need in.

[-- Attachment #1.2: Type: text/html, Size: 624 bytes --]

[-- Attachment #2: predicts.gif --]
[-- Type: image/gif, Size: 11340 bytes --]

[-- Attachment #3: Type: text/plain, Size: 347 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 197 bytes --]

_______________________________________________
Kernel-janitor-discuss mailing list
Kernel-janitor-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kernel-janitor-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-07-13  0:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10 20:32 RUN Adam Kane
2007-07-10 22:01 ` RUN Bauke Jan Douma
2007-07-10 22:08 ` RUN Adam Kane
2007-07-11  0:04 ` RUN Kay Sievers
2007-07-11  0:59 ` RUN Richard Michael
2007-07-11  1:08 ` RUN Kay Sievers
2007-07-11  2:11 ` RUN Bryan Kadzban
2007-07-11  8:36 ` RUN Scott James Remnant
2007-07-11 13:12 ` RUN Richard Michael
2007-07-13  0:10 ` RUN Adam Kane
  -- strict thread matches above, loose matches on Subject: below --
2006-11-18 22:05 run iPod

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.