hplip/hplip-udev-rules.patch
2016-09-26 10:15:09 +03:00

23 lines
1.5 KiB
Diff

diff -Naur hplip-3.16.8.orig/data/rules/56-hpmud.rules hplip-3.16.8/data/rules/56-hpmud.rules
--- hplip-3.16.8.orig/data/rules/56-hpmud.rules 2016-09-26 10:12:48.935470054 +0300
+++ hplip-3.16.8/data/rules/56-hpmud.rules 2016-09-26 10:12:49.004470990 +0300
@@ -12,7 +12,4 @@
# ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
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"
-# This rule will check the smart install feature, plugin status and firmware download for the required printers.
-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}'"
-
LABEL="hpmud_rules_end"
diff -Naur hplip-3.16.8.orig/Makefile.in hplip-3.16.8/Makefile.in
--- hplip-3.16.8.orig/Makefile.in 2016-09-26 10:12:48.850468901 +0300
+++ hplip-3.16.8/Makefile.in 2016-09-26 10:12:49.007471031 +0300
@@ -4914,7 +4914,7 @@
@HPLIP_BUILD_TRUE@dist_rulessystem_DATA = data/rules/hplip-printer@.service
# hpmud.rules
-@HPLIP_BUILD_TRUE@rulesdir = /etc/udev/rules.d
+@HPLIP_BUILD_TRUE@rulesdir = /usr/lib/udev/rules.d
@HPLIP_BUILD_TRUE@@UDEV_SYSFS_RULES_FALSE@dist_rules_DATA = data/rules/56-hpmud.rules
@HPLIP_BUILD_TRUE@@UDEV_SYSFS_RULES_TRUE@dist_rules_DATA = data/rules/56-hpmud_sysfs.rules
@HPLIP_BUILD_TRUE@halpredir = /usr/share/hal/fdi/preprobe/10osvendor