From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 28 Mar 2004 13:52:31 +0000 Subject: Re: add/remove actions for usb devices Message-Id: <20040328135231.GA5301@vrfy.org> 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 On Sun, Mar 28, 2004 at 03:45:48PM +0200, Florian Iragne wrote: > 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? Is it executable? Is the first line '#!/bin/sh'? Please build udev with 'make DEBUG=true' and have a look at the output in syslog. You should get something like this: Mar 28 04:15:06 pim udev[8972]: call_foreach_file: unable to open '/etc/dev.d/net' Mar 28 04:15:06 pim udev[8972]: call_foreach_file: open directory '/etc/dev.d/default' Mar 28 04:15:06 pim udev[8972]: call_foreach_file: put file '/etc/dev.d/default/0.dev' in list Mar 28 04:15:06 pim udev[8972]: run_program: running /etc/dev.d/default/0.dev Mar 28 04:15:06 pim logger: /etc/dev.d/default/0.dev /class/net/blind0 thanks, Kay ------------------------------------------------------- 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