From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Buesch Date: Sun, 08 Apr 2007 19:58:04 +0000 Subject: Re: My udev rule doesn't work Message-Id: <200704082202.00795.mb@bu3sch.de> List-Id: References: <200704071544.36669.mb@bu3sch.de> In-Reply-To: <200704071544.36669.mb@bu3sch.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sunday 08 April 2007 21:59, Michael Buesch wrote: > On Sunday 08 April 2007 21:53, Michael Buesch wrote: > > run_program: '/lib/udev/deathaddercfg' (stdout) 'run_program: program '= /lib/udev/deathaddercfg' not found' > > run_program: '/lib/udev/deathaddercfg' returned with status 1 >=20 >=20 > Oh I'm sorry. Did not see my error here. > So when I put the tool (with full path) into PROGRAM, it's _not_ > called on the ADD event, but on udevtest it is and correctly configures t= he device. >=20 >=20 > root@powermac:/etc/udev/rules.d# udevtest /class/usb_device/usbdev1.21 > main: looking at device '/class/usb_device/usbdev1.21' from subsystem 'us= b_device' > run_program: '/usr/local/bin/deathaddercfg -C' > run_program: '/usr/local/bin/deathaddercfg' returned with status 0 Argh! Damn. I got it. Stupid me. /usr/local/bin is not in PATH at that time. Sorry for the noise! With full path in RUN it is called. --=20 Greetings Michael. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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