File: 0012-Use-the-same-firmware-folder-for-all-HP-LJ-printers.patch

package info (click to toggle)
foo2zjs 20160902dfsg0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,944 kB
  • ctags: 5,880
  • sloc: ansic: 39,074; xml: 12,015; sh: 6,903; makefile: 1,648; objc: 573; tcl: 171; perl: 102; python: 8
file content (97 lines) | stat: -rw-r--r-- 2,842 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
From 723dd04218ef05e82fbcbd2e1239867c004c4db4 Mon Sep 17 00:00:00 2001
From: Didier Raboud <odyx@debian.org>
Date: Tue, 4 Oct 2016 11:43:55 +0200
Subject: Use the same firmware folder for all HP LJ printers

---
 hplj1000      |  6 ------
 hplj10xx.conf | 10 +++++-----
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/hplj1000 b/hplj1000
index bb87a79..2f22631 100755
--- a/hplj1000
+++ b/hplj1000
@@ -90,37 +90,31 @@ case "$0" in
     MODEL=P1005; FWMODEL=$MODEL
     USB1=0x03f0	#Vendor
     USB2=0x3d17	#Model
-    FWDIR=/usr/share/foo2xqx/firmware
     ;;
 *P1006)
     MODEL=P1006; FWMODEL=$MODEL
     USB1=0x03f0	#Vendor
     USB2=0x3e17	#Model
-    FWDIR=/usr/share/foo2xqx/firmware
     ;;
 *P1007)
     MODEL=P1007; FWMODEL=P1005		# Alias
     USB1=0x03f0	#Vendor
     USB2=0x4817	#Model
-    FWDIR=/usr/share/foo2xqx/firmware
     ;;
 *P1008)
     MODEL=P1008; FWMODEL=P1006		# Alias
     USB1=0x03f0	#Vendor
     USB2=0x4917	#Model
-    FWDIR=/usr/share/foo2xqx/firmware
     ;;
 *P1505)
     MODEL=P1505; FWMODEL=$MODEL
     USB1=0x03f0	#Vendor
     USB2=0x3f17	#Model
-    FWDIR=/usr/share/foo2xqx/firmware
     ;;
 *P1505n)
     MODEL=P1505n; FWMODEL=$MODEL
     USB1=0x03f0	#Vendor
     USB2=0x4017	#Model
-    FWDIR=/usr/share/foo2xqx/firmware
     ;;
 *1000)
     MODEL=1000; FWMODEL=$MODEL
diff --git a/hplj10xx.conf b/hplj10xx.conf
index a2083bb..fe32eea 100644
--- a/hplj10xx.conf
+++ b/hplj10xx.conf
@@ -15,35 +15,35 @@
 attach 100 {
     match "vendor" "0x03f0";
     match "product" "0x3d17";
-    action "cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/$device-name";
+    action "cat /lib/firmware/hp/sihpP1005.dl > /dev/$device-name";
 };
 
 # Firmware download HP LaserJet P1006 printer
 attach 100 {
     match "vendor" "0x03f0";
     match "product" "0x3e17";
-    action "cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/$device-name";
+    action "cat /lib/firmware/hp/sihpP1006.dl > /dev/$device-name";
 };
 
 # Firmware download HP LaserJet P1007 printer
 attach 100 {
     match "vendor" "0x03f0";
     match "product" "0x4817";
-    action "cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/$device-name";
+    action "cat /lib/firmware/hp/sihpP1005.dl > /dev/$device-name";
 };
 
 # Firmware download HP LaserJet P1008 printer
 attach 100 {
     match "vendor" "0x03f0";
     match "product" "0x4917";
-    action "cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/$device-name";
+    action "cat /lib/firmware/hp/sihpP1006.dl > /dev/$device-name";
 };
 
 # Firmware download HP LaserJet P1505 printer
 attach 100 {
     match "vendor" "0x03f0";
     match "product" "0x3f17";
-    action "cat /usr/share/foo2xqx/firmware/sihpP1505.dl > /dev/$device-name";
+    action "cat /lib/firmware/hp/sihpP1505.dl > /dev/$device-name";
 };
 
 # Firmware download HP LaserJet 1000 printer