[Nut-upsdev] NUT-2.0.5: newhidups on RedHat ES4

Arjen de Korte nut+devel at de-korte.org
Tue Mar 27 19:26:36 CET 2007


Patrick Agrain wrote:

> udev rules :
> # MGE UPS SYSTEMS - usbhid-ups
> SYSFS{idVendor}=="0463", SYSFS{idProduct}=="ffff", MODE="664", GROUP="nut"
> SYSFS{idVendor}=="0463", SYSFS{idProduct}=="0001", MODE="664", GROUP="nut"
> syslog output:
> Mar 28 04:16:39 sxb udev[2579]: parse error
> /etc/udev/rules.d/nut-usbups.rules, line 4:0, rule skipped
> Mar 28 04:16:39 sxb udev[2579]: parse error
> /etc/udev/rules.d/nut-usbups.rules, line 5:0, rule skipped
> and :
> # MGE UPS SYSTEMS - usbhid-ups
> SYSFS{idVendor}="0463", SYSFS{idProduct}="ffff", MODE="664", GROUP="nut"
> SYSFS{idVendor}="0463", SYSFS{idProduct}="0001", MODE="664", GROUP="nut"
> --> No more errors in the syslog

This is not what we want. The '=' sign, means an assignment is made,
while we really want to do a comparison '=='.

I'm not 100% sure, but I suspect this might be a RedHat bug. The scripts
work as expected here, although I don't have a UPS handy to test this
with (someone on this list promised one, but so far it has not arrived).

Best regards, Arjen



More information about the Nut-upsdev mailing list