Lines 10-16
Link Here
|
10 |
|
10 |
|
11 |
# get TurboPrint configuration |
11 |
# get TurboPrint configuration |
12 |
|
12 |
|
13 |
eval $(cat /etc/turboprint/system.cfg) |
13 |
eval $(cat system.cfg) |
14 |
|
14 |
|
15 |
# override help browser if set by command line |
15 |
# override help browser if set by command line |
16 |
|
16 |
|
Lines 40-46
Link Here
|
40 |
# link documentation |
40 |
# link documentation |
41 |
|
41 |
|
42 |
if [ ! -e $TPPATH_DOC/html_fr ] ; then |
42 |
if [ ! -e $TPPATH_DOC/html_fr ] ; then |
43 |
ln -s $TPPATH_DOC/html $TPPATH_DOC/html_fr |
43 |
ln -s html $TPPATH_DOC/html_fr |
44 |
fi |
44 |
fi |
45 |
|
45 |
|
46 |
# write system.cfg |
46 |
# write system.cfg |
Lines 78-84
Link Here
|
78 |
|
78 |
|
79 |
# generate PPD files; add to CUPS if present |
79 |
# generate PPD files; add to CUPS if present |
80 |
|
80 |
|
81 |
mkdir -p "$RBR$TPPATH_SHARE/ppd" |
81 |
mkdir -p "$TPPATH_SHARE/ppd" |
82 |
tpsetup --writeppdfiles "$TPPATH_SHARE/ppd/" |
82 |
tpsetup --writeppdfiles "$TPPATH_SHARE/ppd/" |
83 |
|
83 |
|
84 |
if [ $TP_CUPS -eq 1 ] ; then |
84 |
if [ $TP_CUPS -eq 1 ] ; then |
Lines 95-119
Link Here
|
95 |
install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint" |
95 |
install --mode=755 $TPPATH_SHARE/ppd/* "$TPPATH_CUPSDRIVER/turboprint" |
96 |
fi |
96 |
fi |
97 |
|
97 |
|
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 |
98 |
# remove dump files |
111 |
|
99 |
|
112 |
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then |
100 |
if [ -e "$TPPATH_SHARE/dump/dj970aligncontrol.prn" ] ; then |
113 |
rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn" |
101 |
rm -r "$TPPATH_SHARE/dump/dj970aligncontrol.prn" |
114 |
fi |
102 |
fi |
115 |
|
103 |
|
116 |
# exit 0 |
104 |
exit 0 |
117 |
|
105 |
|
118 |
# add entry to KDE menu |
106 |
# add entry to KDE menu |
119 |
# KDE1 no longer supported |
107 |
# KDE1 no longer supported |