Lines 8-17
Link Here
|
8 |
# (c) 2000-2002 ZEDOnet |
8 |
# (c) 2000-2002 ZEDOnet |
9 |
# mail@turboprint.de |
9 |
# mail@turboprint.de |
10 |
|
10 |
|
11 |
# get TurboPrint configuration |
|
|
12 |
|
13 |
eval $(cat /etc/turboprint/system.cfg) |
14 |
|
15 |
# override help browser if set by command line |
11 |
# override help browser if set by command line |
16 |
|
12 |
|
17 |
TP_RPM=0 |
13 |
TP_RPM=0 |
Lines 39-46
Link Here
|
39 |
|
35 |
|
40 |
# link documentation |
36 |
# link documentation |
41 |
|
37 |
|
42 |
if [ ! -e $TPPATH_DOC/html_fr ] ; then |
38 |
if [ ! -e "$TPPATH_DOC/html_fr" ] ; then |
43 |
ln -s $TPPATH_DOC/html $TPPATH_DOC/html_fr |
39 |
ln -s html "$TPPATH_DOC/html_fr" |
44 |
fi |
40 |
fi |
45 |
|
41 |
|
46 |
# write system.cfg |
42 |
# write system.cfg |
Lines 78-85
Link Here
|
78 |
|
74 |
|
79 |
# generate PPD files; add to CUPS if present |
75 |
# generate PPD files; add to CUPS if present |
80 |
|
76 |
|
81 |
mkdir -p "$RBR$TPPATH_SHARE/ppd" |
77 |
mkdir -p "$TPPATH_SHARE/ppd" |
82 |
tpsetup --writeppdfiles "$TPPATH_SHARE/ppd/" |
78 |
"$TPPATH_BIN/tpsetup" --writeppdfiles "$TPPATH_SHARE/ppd/" |
83 |
|
79 |
|
84 |
if [ $TP_CUPS -eq 1 ] ; then |
80 |
if [ $TP_CUPS -eq 1 ] ; then |
85 |
if [ -e "$TPPATH_CUPSFILTER" ] ; then |
81 |
if [ -e "$TPPATH_CUPSFILTER" ] ; then |
Lines 95-119
Link Here
|
95 |
install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint" |
91 |
install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint" |
96 |
fi |
92 |
fi |
97 |
|
93 |
|
98 |
# call setup to update LPD config files / CUPS PPD files |
|
|
99 |
|
100 |
tpsetup --update |
101 |
|
102 |
# restart CUPS scheduler |
103 |
|
104 |
if [ $TP_CUPS -eq 1 ] ; then |
105 |
echo "Restarting CUPS printing system..." |
106 |
rccups restart &> /dev/null |
107 |
echo "" |
108 |
fi |
109 |
|
110 |
# remove dump files |
94 |
# remove dump files |
111 |
|
95 |
|
112 |
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then |
96 |
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then |
113 |
rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn" |
97 |
rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn" |
114 |
fi |
98 |
fi |
115 |
|
99 |
|
116 |
# exit 0 |
100 |
exit 0 |
117 |
|
101 |
|
118 |
# add entry to KDE menu |
102 |
# add entry to KDE menu |
119 |
# KDE1 no longer supported |
103 |
# KDE1 no longer supported |