linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting a mount point once a device has been mounted
@ 2009-08-18 21:46 Paul Kilgo
  2009-08-18 22:15 ` Marco d'Itri
  2009-08-19  4:44 ` Paul Kilgo
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Kilgo @ 2009-08-18 21:46 UTC (permalink / raw)
  To: linux-hotplug

Hello

I have a script I wrote that is meant to scan a usb stick for viruses
and takes the stick's mount point as an argument.

I'd like the script to clean any new usb devices that get plugged into
the system. I've been experimenting with the rules but can't find a
good way to get the mount point. Does anyone have any ideas or perhaps
an alternate method?

--Paul

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

* Re: Getting a mount point once a device has been mounted
  2009-08-18 21:46 Getting a mount point once a device has been mounted Paul Kilgo
@ 2009-08-18 22:15 ` Marco d'Itri
  2009-08-19  4:44 ` Paul Kilgo
  1 sibling, 0 replies; 3+ messages in thread
From: Marco d'Itri @ 2009-08-18 22:15 UTC (permalink / raw)
  To: linux-hotplug

On Aug 18, Paul Kilgo <paulkilgo@gmail.com> wrote:

> I'd like the script to clean any new usb devices that get plugged into
> the system. I've been experimenting with the rules but can't find a
> good way to get the mount point. Does anyone have any ideas or perhaps
> an alternate method?
You need to watch /proc/mounts for changes, udev does not deal with
this. Hopefully some day upstart it will...

-- 
ciao,
Marco

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

* Re: Getting a mount point once a device has been mounted
  2009-08-18 21:46 Getting a mount point once a device has been mounted Paul Kilgo
  2009-08-18 22:15 ` Marco d'Itri
@ 2009-08-19  4:44 ` Paul Kilgo
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Kilgo @ 2009-08-19  4:44 UTC (permalink / raw)
  To: linux-hotplug

Thanks for the tip Marco :)

On Tue, Aug 18, 2009 at 5:15 PM, Marco d'Itri<md@linux.it> wrote:
> On Aug 18, Paul Kilgo <paulkilgo@gmail.com> wrote:
>
>> I'd like the script to clean any new usb devices that get plugged into
>> the system. I've been experimenting with the rules but can't find a
>> good way to get the mount point. Does anyone have any ideas or perhaps
>> an alternate method?
> You need to watch /proc/mounts for changes, udev does not deal with
> this. Hopefully some day upstart it will...
>
> --
> ciao,
> Marco
>



-- 
--Paul

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

end of thread, other threads:[~2009-08-19  4:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-18 21:46 Getting a mount point once a device has been mounted Paul Kilgo
2009-08-18 22:15 ` Marco d'Itri
2009-08-19  4:44 ` Paul Kilgo

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