/lib/udev/rules.d/56-hpmud_support.rules is in hplip 3.12.2-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # HPLIP udev rules file. Notify console user if plugin support is required for this device.
ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
LABEL="pid_test"
# Check for LaserJet products (0x03f0xx17).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"
# Check for LaserJet products (0x03f0xx2a).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??2a", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"
LABEL="hpmud_rules_end"
|