summarylogtreecommitdiffstats
path: root/brother-hl3152cdw.patch
blob: 39db3eda594cbec9b64e2a22f53ae9a81457ba8a (plain)
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
--- old_opt/brother/Printers/hl3152cdw/cupswrapper/cupswrapperhl3152cdw	2016-01-25 23:58:45.000000000 -0800
+++ new_opt/brother/Printers/hl3152cdw/cupswrapper/cupswrapperhl3152cdw	2016-09-01 20:41:42.525560282 -0700
@@ -23,8 +23,9 @@
 device_name=`echo $printer_name | eval sed -e 's/MFC/MFC-/' -e 's/DCP/DCP-/' -e 's/HL/HL-/' -e 's/FAX/FAX-/'`
 pcfilename=`echo $printer_name | tr -d '[A-Z]'`
 device_model="Printers"
-tmp_filter=/var/tmp/brother_lpdwrapper_${printer_model}
+tmp_filter=wrapper
 
+if false; then
 if [ -d "/usr/share/cups/model" ]; then
   mkdir -p /usr/share/cups/model/Brother
 else
@@ -102,6 +103,7 @@
 fi
 fi
 
+fi
 #
 #	create temporary CUPS Filter
 #
@@ -148,7 +150,7 @@
 PPDC=\`echo \$PPDC | sed -e 's/PPD=//'\`
 
 if [ "\$PPDC" = "" ]; then
-    PPDC="/usr/share/cups/model/Brother/brother_${printer_model}_printer_en.ppd"
+    PPDC="/usr/share/cups/model/brother_${printer_model}_printer_en.ppd"
 fi
 
 
@@ -263,6 +265,7 @@
 
 chmod 755 $tmp_filter
 
+if false; then
 #
 #	check /usr/lib/cups/filter
 #
@@ -351,6 +354,7 @@
 
 echo lpadmin -p ${printer_name} -E -v $URI -P $ppd_file_name
 lpadmin -p ${printer_name} -E -v $URI -P $ppd_file_name
+fi
 								
 exit 0