On Sat, Jun 06, 2009 at 06:27:26PM +0200, Marco d'Itri wrote: > On Jun 06, Christian Schmitt <chris@xxxxxxxxxxxxx> wrote: > > > unplug the device. Is there a way to execute a script when unmounting? I guess > > doing this on the DE level is not the best way to go. > The approved method is using inotify(2) on /proc/mounts, which is not > related to udev. /proc and inotify are not good friends, but you can use poll() / select() Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html