blob: 3762cfc951ddc87ee3b05cc8f4b9ec1685c67186 (
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
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
|
diff -Naur usr.old/local/Brother/Printer/dcp560cn/cupswrapper/cupswrapperdcp560cn usr/local/Brother/Printer/dcp560cn/cupswrapper/cupswrapperdcp560cn
--- usr.old/local/Brother/Printer/dcp560cn/cupswrapper/cupswrapperdcp560cn 2010-04-13 20:08:50.211208593 +0200
+++ usr/local/Brother/Printer/dcp560cn/cupswrapper/cupswrapperdcp560cn 2010-04-13 19:59:19.164599589 +0200
@@ -30,22 +30,22 @@
rm -f /usr/lib/cups/filter/brlpdwrapper${printer_model}
rm -f /usr/lib64/cups/filter/brlpdwrapper${printer_model}
rm -f /usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1
-if [ -e /etc/init.d/cups ]; then
- /etc/init.d/cups restart
-elif [ -e /etc/init.d/cupsys ]; then
- /etc/init.d/cupsys restart
+if [ -e /etc/rc.d/cups ]; then
+ /etc/rc.d/cups restart
+elif [ -e /etc/rc.d/cupsys ]; then
+ /etc/rc.d/cupsys restart
fi
-# /etc/init.d/cups restart
+# /etc/rc.d/cups restart
exit 0
fi
if [ "$1" = "-r" ]; then
lpadmin -x ${printer_name}
-if [ -e /etc/init.d/cups ]; then
- /etc/init.d/cups restart
-elif [ -e /etc/init.d/cupsys ]; then
- /etc/init.d/cupsys restart
+if [ -e /etc/rc.d/cups ]; then
+ /etc/rc.d/cups restart
+elif [ -e /etc/rc.d/cupsys ]; then
+ /etc/rc.d/cupsys restart
fi
-# /etc/init.d/cups restart
+# /etc/rc.d/cups restart
exit 0
fi
if [ "$1" = "help" ] || [ "$1" = "-h" ]; then
@@ -839,18 +839,18 @@
chmod a+w /usr/local/Brother/${device_model}/${printer_model}/inf/br${printer_model}rc
chmod a+w /usr/local/Brother/${device_model}/${printer_model}/inf
-if [ -e /etc/init.d/lpd ]; then
- /etc/init.d/lpd stop
+if [ -e /etc/rc.d/lpd ]; then
+ /etc/rc.d/lpd stop
fi
-if [ -e /etc/init.d/lprng ]; then
- /etc/init.d/lprng stop
+if [ -e /etc/rc.d/lprng ]; then
+ /etc/rc.d/lprng stop
fi
-if [ -e /etc/init.d/cups ]; then
- /etc/init.d/cups restart
-elif [ -e /etc/init.d/cupsys ]; then
- /etc/init.d/cupsys restart
+if [ -e /etc/rc.d/cups ]; then
+ /etc/rc.d/cups restart
+elif [ -e /etc/rc.d/cupsys ]; then
+ /etc/rc.d/cupsys restart
fi
sleep 2s
diff -Naur usr.old/local/Brother/Printer/dcp560cn/inf/setupPrintcapij usr/local/Brother/Printer/dcp560cn/inf/setupPrintcapij
--- usr.old/local/Brother/Printer/dcp560cn/inf/setupPrintcapij 2010-04-13 20:08:50.214959736 +0200
+++ usr/local/Brother/Printer/dcp560cn/inf/setupPrintcapij 2010-04-13 19:59:56.077929516 +0200
@@ -20,7 +20,7 @@
BRPRINTER_MODEL=$1
BRPRINTER_NAME=`echo $BRPRINTER_MODEL | tr '[a-z]' '[A-Z]'`
-PRINTCAP_NAME=/etc/printcap.local
+PRINTCAP_NAME=/etc/printcap
SPOOLER_NAME=/var/spool/lpd/$BRPRINTER_MODEL
DEVICE_IF=/dev/usb/lp0
|