Comment 23 for bug 27833

Revision history for this message
carrasclin (fontanet9) wrote :

To Forest Bond.

I see in your attached debdiff something like...

<code>
# MidiSport 2x2
-ACTION=="add", SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1001", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport2x2.ihx"
+ACTION=="add", SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1001", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport2x2.ihx" -d $env{DEVNAME}
</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...
<code>
ACTION=="add", SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1001", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport2x2.ihx -D $env{DEVNAME}"
</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.