[Nut-upsdev] nut + usb + udev with kernel 2.6.22
Arjen de Korte
nut+devel at de-korte.org
Mon Oct 15 08:25:26 UTC 2007
Arnaud Quette wrote:
> Guys,
>
> first, thanks for your report.
>
> I suspected such a thing from recent feedback.
>
> 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?
I have also tested it and it works both on openSUSE 10.2 (which uses
"usb_device") and openSUSE 10.3 (which uses "usb"). Since not changing
this will probably lead to many more bug reports, I took the liberty to
commit this to both the trunk and Testing.
There may be cleaner ways to fix this (possibly through an autoconf
macro), but I don't want to wait for that.
Best regards, Arjen
More information about the Nut-upsdev
mailing list