summaryrefslogtreecommitdiff
path: root/sys-power/apcupsd/files/apcupsd-udev.rules
blob: b2eeb27302d8cb1008aa78c98e2374e02b5bb659 (plain)
1
2
3
4
5
6
7
8
9
10
# do not edit this file, it will be overwritten on update

ACTION!="add", GOTO="apcupsd_end"
SUBSYSTEM!="usb", GOTO="apcupsd_end"
ENV{ID_VENDOR}=="", IMPORT{program}="usb_id --export %p"
ENV{ID_VENDOR_ID}!="051d", GOTO="apcupsd_end"

KERNEL=="?*", SYMLINK+="apcups/by-id/$env{ID_BUS}-$env{ID_SERIAL_SHORT}"

LABEL="apcupsd_end"