nut/debian/patches/0002-fix_udev_action.patch

14 lines
525 B
Diff

--- a/scripts/udev/nut-usbups.rules.in
+++ b/scripts/udev/nut-usbups.rules.in
@@ -1,9 +1,9 @@
# This file is generated and installed by the Network UPS Tools package.
-ACTION!="add", GOTO="nut-usbups_rules_end"
+ACTION!="add|change", 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"
+SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end"
LABEL="nut-usbups_rules_real"
# Krauler UP-M500VA - blazer_usb