[Nut-upsdev] nut + usb + udev with kernel 2.6.22

Arjen de Korte nut+devel at de-korte.org
Mon Oct 8 11:35:07 UTC 2007


Vamp wrote:

>> Here is what I'm preparing to push:
> 
>> --- nut-2.2.0~/scripts/udev/nut-usbups.rules.in 2007-02-01
>> 16:23:17.000000000 +0100
>> +++ nut-2.2.0/scripts/udev/nut-usbups.rules.in  2007-02-02
>> 15:43:42.000000000 +0100
>> @@ -1,7 +1,11 @@
>>  # udev rules for the NUT USB drivers
> 
>> -SUBSYSTEM!="usb_device", GOTO="nut-usbups_rules_end"
>>  ACTION!="add", GOTO="nut-usbups_rules_end"
>> +SUBSYSTEM=="usb_device", GOTO="nut-usbups_rules_real"
>> +SUBSYSTEM=="usb", GOTO="nut-usbups_rules_real"
>> +BUS!="usb", GOTO="nut-usbups_rules_end"
>> +
>> +LABEL="nut-usbups_rules_real"
> 
>>  # MGE UPS SYSTEMS - usbhid-ups
>>  SYSFS{idVendor}=="0463", SYSFS{idProduct}=="ffff", MODE="664",
>> GROUP="@RUN_AS_USER@"
> 
>> Can you both test it and make some feedback?
> 
> Hmmm... There is no "BUS" variable. There is only "PHYSDEVBUS".

As long as SUBSYSTEM is equal to "usb" or "usb_device", that doesn't
matter. If not, if BUS either doesn't exist or is not equal to "usb", we
should probably skip the remainder.

Best regards, Arjen



More information about the Nut-upsdev mailing list