"Fossies" - the Fresh Open Source Software Archive

Member "hplip-3.23.12/data/rules/56-hpmud.rules" (27 Nov 2023, 921 Bytes) of package /linux/misc/hplip-3.23.12.tar.gz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # HPLIP udev rules file. Notify console user if plugin support is required for this device.
    3 ACTION!="add", GOTO="hpmud_rules_end"
    4 SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
    5 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_usb_rules"
    6 GOTO="hpmud_rules_end"
    8 LABEL="hpmud_usb_rules"
   10 ENV{ID_USB_INTERFACES}=="", IMPORT{builtin}="usb_id"
   12 # ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
   13 ATTR{idVendor}=="03f0", ENV{ID_USB_INTERFACES}=="*:0701??:*|*:ffcc00:", OWNER="root", GROUP="lp", MODE="0664", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"
   15 # This rule will check the smart install feature, plugin status and firmware download for the required printers.
   16 ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM}'"
   18 LABEL="hpmud_rules_end"