On Nov 16, 2010, at 3:27 PM, Arjen de Korte wrote:
Citeren Charles Lepple <[email protected]>:
Looks like Ubuntu changed to the udev which supports ATTRS sometime
between 6.06 and 8.04 (2006 and 2008), but I haven't tracked down
when the kernels changed over.
If the system supports pkg-config, checking if the version is < 098
should be able to tell if we must use SYSFS or can use ATTRS (which
is supported for udev >= 098). Since this change happened somewhere
in 2006, I'm not sure if this is an issue anymore however, so it's
probably safe to use ATTRS.
The one thing I'm still not sure about is when the kernels changed
over - it seems like udev changed to ATTRS first.
Also, I didn't know that udev had a pkg-config entry. I'll try to take
a look at that more tomorrow.
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev