Mageia Bugzilla – Attachment 5912 Details for
Bug 15266
Please update hplip package to recognize new HP printers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
hplip-udev-rules.patch
hplip-udev-rules.patch (text/plain), 1.96 KB, created by
Vincent D
on 2015-02-13 22:20:52 CET
(
hide
)
Description:
hplip-udev-rules.patch
Filename:
MIME Type:
Creator:
Vincent D
Created:
2015-02-13 22:20:52 CET
Size:
1.96 KB
patch
obsolete
>diff -up hplip-3.15.2/data/rules/56-hpmud.rules.udev-rules hplip-3.15.2/data/rules/56-hpmud.rules >--- hplip-3.15.2/data/rules/56-hpmud.rules.udev-rules 2015-01-29 13:20:25.000000000 +0200 >+++ hplip-3.15.2/data/rules/56-hpmud.rules 2015-02-11 14:35:53.775887684 +0200 >@@ -11,9 +11,6 @@ LABEL="hpmud_usb_rules" > ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", 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 'if [ -f /usr/bin/systemctl ]; then /usr/bin/systemctl --no-block start hplip-printer@$env{BUSNUM}:$env{DEVNUM}.service; else /usr/bin/nohup /usr/bin/python /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM} ; fi &'" >- > # If sane-bankends is installed add hpaio backend support to dll.conf if needed. > ENV{sane_hpaio}=="yes", RUN+="/bin/sh -c 'grep -q ^#hpaio /etc/sane.d/dll.conf;if [ $$? -eq 0 ];then sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf;else grep -q ^hpaio /etc/sane.d/dll.conf;if [ $$? -ne 0 ];then echo hpaio >>/etc/sane.d/dll.conf;fi;fi'" > >diff -up hplip-3.15.2/Makefile.in.udev-rules hplip-3.15.2/Makefile.in >--- hplip-3.15.2/Makefile.in.udev-rules 2015-01-29 13:21:26.000000000 +0200 >+++ hplip-3.15.2/Makefile.in 2015-02-11 14:37:05.561405995 +0200 >@@ -4554,7 +4554,7 @@ cups_drv = prnt/drv/hpcups.drv > @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
diff -up hplip-3.15.2/data/rules/56-hpmud.rules.udev-rules hplip-3.15.2/data/rules/56-hpmud.rules --- hplip-3.15.2/data/rules/56-hpmud.rules.udev-rules 2015-01-29 13:20:25.000000000 +0200 +++ hplip-3.15.2/data/rules/56-hpmud.rules 2015-02-11 14:35:53.775887684 +0200 @@ -11,9 +11,6 @@ LABEL="hpmud_usb_rules" ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", 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 'if [ -f /usr/bin/systemctl ]; then /usr/bin/systemctl --no-block start hplip-printer@$env{BUSNUM}:$env{DEVNUM}.service; else /usr/bin/nohup /usr/bin/python /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM} ; fi &'" - # If sane-bankends is installed add hpaio backend support to dll.conf if needed. ENV{sane_hpaio}=="yes", RUN+="/bin/sh -c 'grep -q ^#hpaio /etc/sane.d/dll.conf;if [ $$? -eq 0 ];then sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf;else grep -q ^hpaio /etc/sane.d/dll.conf;if [ $$? -ne 0 ];then echo hpaio >>/etc/sane.d/dll.conf;fi;fi'" diff -up hplip-3.15.2/Makefile.in.udev-rules hplip-3.15.2/Makefile.in --- hplip-3.15.2/Makefile.in.udev-rules 2015-01-29 13:21:26.000000000 +0200 +++ hplip-3.15.2/Makefile.in 2015-02-11 14:37:05.561405995 +0200 @@ -4554,7 +4554,7 @@ cups_drv = prnt/drv/hpcups.drv @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
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15266
:
5909
|
5910
|
5911
| 5912 |
6704
|
6705
|
6895
|
6896
|
6897