1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## udev-rules-hp-mkuri-call-fix.dpatch by <till@till-precise>
4
## All lines beginning with `## DP:' are a description of the patch.
8
Index: hplip-3.12.4/data/rules/56-hpmud_support.rules
9
===================================================================
10
--- hplip-3.12.4.orig/data/rules/56-hpmud_support.rules 2012-04-10 18:34:19.000000000 +1000
11
+++ hplip-3.12.4/data/rules/56-hpmud_support.rules 2012-05-26 10:21:29.000000000 +1000
15
# Check for LaserJet products (0x03f0xx17).
16
-ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes"
17
+ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"
18
# Check for LaserJet products (0x03f0xx2a).
19
-ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??2a", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes"
20
-ENV{hp_test}=="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"
21
+ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??2a", ENV{hp_model}="$attrs{product}", ENV{hp_test}="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"
23
LABEL="hpmud_rules_end"