Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > ada2383ea7e94426d449ea15c00f06df > files > 2

hplip-model-data-3.10.2-5mdv2010.1.x86_64.rpm

# 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).
ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attr{product}", ENV{hp_test}="yes"

ENV{hp_test}=="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"

LABEL="hpmud_rules_end"