From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Iragne Date: Sun, 28 Mar 2004 13:45:48 +0000 Subject: Re: add/remove actions for usb devices Message-Id: <4066D70C.5000605@labri.fr> List-Id: References: <40648838.2040703@labri.fr> In-Reply-To: <40648838.2040703@labri.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greg KH wrote: >On Fri, Mar 26, 2004 at 10:22:14PM +0100, Florian Iragne wrote: > > >> >> >>>Or if you want to catch the fact when udev removes a /dev node (which >>>odds are is what you really want to catch), put your script, or a link >>>to it in /etc/dev.d/block/ with the extension .dev and you will get both >>>add and remove events that corrisponded to a udev create or remove >>>device node. >>> >>> >>> >>> >>> >>just one more stupid question! ;-) >> >>is this /etc/dev.d/block/ directory supposed to already exist? i think >>so but can't find it. On my debian sid, i have /etc/udev directory, but >>no block in this >> >> > >You need the 023 release for this to work. > >And no, that directory will not be there, you need to create it >yourself. > > ok, i've played a bit with this, but can't have anything working. I've created /etc/dev/block directory and put a script called xdrive.dev in this directory. it contains only a echo "something happens" > /var/log/udevEvent nothing in /var/log/udevEvent i've tried to call the script sda1.dev or anything with lower/upper cases, nothing worked. So, would it be possible to have a little example? thanks Florian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ 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