7 lines
379 B
Plaintext
7 lines
379 B
Plaintext
|
SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end"
|
||
|
|
||
|
{% for name, config in nut_server.ups.items() %}
|
||
|
ACTION=="add|change", SUBSYSTEM=="usb|usb_device", SUBSYSTEMS=="usb|usb_device", ATTR{idVendor}=="{{ config.vendorid }}", ATTR{idProduct}=="{{ config.productid }}", MODE="664", GROUP="nut", RUN+="/sbin/upsdrvctl stop; /sbin/upsdrvctl start"
|
||
|
{% endfor %}
|
||
|
|
||
|
LABEL="nut-usbups_rules_end"
|