# Udev rules file for HP printer products.

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0660"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"

LABEL="pid_test"

# Check for AiO products (0x03f0xx11).
ATTR{idVendor}=="03f0", ATTR{idProduct}=="??11", OWNER="root", GROUP="lp", MODE="0660"
# Check for Photosmart products (0x03f0xx02).
ATTR{idVendor}=="03f0", ATTR{idProduct}=="??02", OWNER="root", GROUP="lp", MODE="0660"
# Check for Business Inkjet products (0x03f0xx12).
ATTR{idVendor}=="03f0", ATTR{idProduct}=="??12", OWNER="root", GROUP="lp", MODE="0660"
# Check for Deskjet products (0x03f0xx04).
ATTR{idVendor}=="03f0", ATTR{idProduct}=="??04", OWNER="root", GROUP="lp", MODE="0660"
# Check for LaserJet products (0x03f0xx17).
ATTR{idVendor}=="03f0", ATTR{idProduct}=="??17", OWNER="root", GROUP="lp", MODE="0660"

LABEL="hpmud_rules_end"
