summarylogtreecommitdiffstats
path: root/brother-hll6200dw.patch
blob: b877e35f0f5f9044fc047da46ffc80b8557acc44 (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
diff --git a/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW b/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW
--- a/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW
+++ b/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW
@@ -50,7 +50,9 @@ if ( $basedir eq '' ){
 }
 chomp($basedir);
 
-$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g;
+#$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g;
+my $PRINTER = "HLL6200DW";
+my $basedir = "/usr/share/Brother/Printer/$PRINTER";
 
 
 %units = ( pt   => \&pt2dot, 
@@ -82,16 +84,16 @@ $ENV{NODENAME} = `uname -n`;
 
 my $cmdoptions=$ARGV[4];
 my $PPD = $ENV{PPD};
-my $PRINTER=$basedir;
+#my $PRINTER=$basedir;
 my $CUPSINPUT='';
 if ( @ARGV >= 6 ){
     $CUPSINPUT=$ARGV[7];
 }
 
 
-$PRINTER =~ s/^\/opt\/.*\/Printers\///g;
-$PRINTER =~ s/\/cupswrapper//g;
-$PRINTER =~ s/\///g;
+#$PRINTER =~ s/^\/opt\/.*\/Printers\///g;
+#$PRINTER =~ s/\/cupswrapper//g;
+#$PRINTER =~ s/\///g;
 
 for  (my $i = 0 ; $i < @ARGV ; $i ++){
     logprint( 0 , "ARG$i      = $ARGV[$i]\n");
@@ -804,7 +806,7 @@ sub exec_lpdconfig {
     my $lpddir = $basedir;
     my %lpr_options = %$lpr_options_ref;
 
-    $lpddir = $basedir."/lpd/";
+    $lpddir = $basedir."/lpd";
     my $lpdconf = $lpddir.'/'.$LPDCONFIGEXE;