From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Conrad Date: Thu, 03 Sep 2009 22:33:50 +0000 Subject: DEVNAME not set when executing udev rule Message-Id: <4AA0444E.3010908@t-online.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, I am trying to initialise a MidiSport USB interface with a udev rule that triggers fxload to upload the firmware: ACTION="add", SUBSYSTEM="usb", DEVPATH="/*.0", ENV{PRODUCT}="763/1001/*", RUN+="/sbin/fxload -v -s /usr/local/share/usb/maudio/MidiSportLoader.ihx -I /usr/local/share/usb/maudio/MidiSport2x2.ihx -D $env{DEVNAME}" The problem: DEVNAME is not set in the environment. Only DEVICE is set with the 'wrong' device file name under /proc/bus/usb which is deprecated and thus not useful. System: Suse 11.1 Linux 2.6.27.29-0.1-default #1 SMP 2009-08-15 17:53:59 +0200 i686 athlon i386 GNU/Linux udev Version: 128 What can I do to pass a valid device file name to fxload to upload the firmware? Thanks, Stefan