linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to find mounted path from usb hotplug?
@ 2007-05-16 23:20 Greg
  2007-05-17  2:48 ` Andrey Borzenkov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Greg @ 2007-05-16 23:20 UTC (permalink / raw)
  To: linux-hotplug

How can I find out where my USB stick was mounted using /sbin/ 
hotplug?  I have a simple script in /etc/hotplug.d/usb/ that is run  
when the key is attached, but I need to know the full path of where  
the USB key is mounted to, and I can't seem to figure out how the  
environment variables can tell me that:

SUBSYSTEM=usb
DEVPATH=/devices/pci0000:00/0000:00:10.4/usb1/1-5/1-5:1.0
PATH=/sbin:/bin:/usr/sbin:/usr/bin
ACTION­d
MODALIAS=usb:v0457p0150d0100dc00dsc00dp00ic08isc06ip50
PWD=/
HOME=/
SHLVL=2
DEVICE=/proc/bus/usb/001/004
INTERFACE=8/6/80
PRODUCTE7/150/100
TYPE=0/0/0
PHYSDEVBUS=usb

Any help would be greatly appreciated!

- Greg

-------------------------------------------------------------------------
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] 4+ messages in thread

end of thread, other threads:[~2007-05-17 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-16 23:20 How to find mounted path from usb hotplug? Greg
2007-05-17  2:48 ` Andrey Borzenkov
2007-05-17  4:23 ` Greg
2007-05-17 11:07 ` Bryan Kadzban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).