summaryrefslogtreecommitdiff
path: root/rules/95-upower-hid.rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules/95-upower-hid.rules')
-rw-r--r--rules/95-upower-hid.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/95-upower-hid.rules b/rules/95-upower-hid.rules
index 87a0956..dcf4380 100644
--- a/rules/95-upower-hid.rules
+++ b/rules/95-upower-hid.rules
@@ -1,15 +1,17 @@
##############################################################################################################
# Uninterruptible Power Supplies with USB HID interfaces
#
# to keep up to date, monitor: http://svn.debian.org/wsvn/nut/trunk/scripts/upower/95-upower-hid.rules
# only support USB, else ignore
+SUBSYSTEM=="usbmisc", GOTO="up_hid_chkdev"
SUBSYSTEM!="usb", GOTO="up_hid_end"
# if usbraw device, ignore
+LABEL="up_hid_chkdev"
KERNEL!="hiddev*", GOTO="up_hid_end"
# if an interface, ignore
ENV{DEVTYPE}=="usb_interface", GOTO="up_hid_end"
ATTRS{idVendor}=="03f0", ENV{UPOWER_VENDOR}="Hewlett Packard"