I've also tried the '-D $tempnode' as pointed out by other colegue and also works OK.
It is interesting to know also that I have compiled from the source available on the sourceforge.net on an official Debian Etch and the original '42-midisport-firmware.rules.in' as ALSO the proposed modified one both work.
But on Ubuntu (both Feisty and Gutsy) the only way to make it work is with the above code, whether with -D $env{DEVNAME} or -D $tempnode.
To Forest Bond.
I see in your attached debdiff something like...
<code> ="usb_device" , ATTRS{idVendor} =="0763" , ATTRS{idProduct }=="1001" , RUN+="@fxload@ -s @firmwaredir@ /MidiSportLoade r.ihx -I @firmwaredir@ /MidiSport2x2. ihx" ="usb_device" , ATTRS{idVendor} =="0763" , ATTRS{idProduct }=="1001" , RUN+="@fxload@ -s @firmwaredir@ /MidiSportLoade r.ihx -I @firmwaredir@ /MidiSport2x2. ihx" -d $env{DEVNAME}
# MidiSport 2x2
-ACTION=="add", SUBSYSTEM=
+ACTION=="add", SUBSYSTEM=
</code>
PLEASE, PLEASE, it is not correct!!!
the '-d $env{DEVNAME}' MUST be inside the quote commas. And the '-d' should be an upper case.
Like this... ="usb_device" , ATTRS{idVendor} =="0763" , ATTRS{idProduct }=="1001" , RUN+="@fxload@ -s @firmwaredir@ /MidiSportLoade r.ihx -I @firmwaredir@ /MidiSport2x2. ihx -D $env{DEVNAME}"
<code>
ACTION=="add", SUBSYSTEM=
</code>
If not this way, would not work.
I've also tried the '-D $tempnode' as pointed out by other colegue and also works OK.
It is interesting to know also that I have compiled from the source available on the sourceforge.net on an official Debian Etch and the original '42-midisport- firmware. rules.in' as ALSO the proposed modified one both work.
But on Ubuntu (both Feisty and Gutsy) the only way to make it work is with the above code, whether with -D $env{DEVNAME} or -D $tempnode.
Greetings.