看看udev的手册页:
ATTR{filename}
Match sysfs attribute values of the event device. Trailing
whitespace in the attribute values is ignored,if the specified
match value does not contain trailing whitespace itself.
VS
ATTRS{filename}
Search the devpath upwards for a device with matching sysfs
attribute values. If multiple ATTRS matches are specified,all of
them must match on the same device. Trailing whitespace in the
attribute values is ignored,if the specified match value does not
contain trailing whitespace itself.
ATTR {}仅查看正在添加的节点. ATTRS {}搜索树.您的UPS可能需要ATTRS {},因为您需要的sysfs属性不在您指定的节点上.