]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - hplip/patches/hplip-3.10.5-udev-rules.patch
Change file layout of the makefiles.
[people/stevee/ipfire-3.x.git] / hplip / patches / hplip-3.10.5-udev-rules.patch
1 diff -up hplip-3.10.5/data/rules/56-hpmud_support.rules.udev-rules hplip-3.10.5/data/rules/56-hpmud_support.rules
2 --- hplip-3.10.5/data/rules/56-hpmud_support.rules.udev-rules 2010-05-13 01:44:22.000000000 +0200
3 +++ hplip-3.10.5/data/rules/56-hpmud_support.rules 2010-05-17 16:12:42.000000000 +0200
4 @@ -6,10 +6,11 @@ SUBSYSTEM!="usb_device", GOTO="hpmud_rul
5
6 LABEL="pid_test"
7
8 +ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
9 # Check for LaserJet products (0x03f0xx17).
10 -SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??17", ENV{hp_model}="$sysfs{product}", ENV{hp_test}="yes"
11 +ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", ENV{hp_model}="$attr{product}", ENV{hp_test}="yes"
12 # Check for LaserJet products (0x03f0xx2a).
13 -SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??2a", ENV{hp_model}="$sysfs{product}", ENV{hp_test}="yes"
14 -ENV{hp_test}=="yes", RUN+="bin/sh -c '/usr/bin/hp-mkuri -c &'"
15 +ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??2a", ENV{hp_model}="$attr{product}", ENV{hp_test}="yes"
16 +ENV{hp_test}=="yes", RUN+="/bin/sh -c '/usr/bin/hp-mkuri -c &'"
17
18 -LABEL="hpmud_rules_end"
19 \ No newline at end of file
20 +LABEL="hpmud_rules_end"
21