debianmacno-cupsnodebathenaweb
Last change
on this file since c631d1a was
c631d1a,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
Changed 'sipbmp3' to 'gutenbach' by popular demand. Have not checked for errors, yet.
|
-
Property mode set to
100755
|
File size:
804 bytes
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | |
---|
3 | echo "Editing /etc/printcap..." >&2 |
---|
4 | if [ ! -e /etc/printcap ]; then |
---|
5 | touch /etc/printcap |
---|
6 | fi |
---|
7 | |
---|
8 | if [ ! -e /etc/lprng/printcap ]; then |
---|
9 | ln -s /etc/printcap /etc/lprng/printcap |
---|
10 | fi |
---|
11 | |
---|
12 | . /usr/share/debconf/confmodule |
---|
13 | db_get gutenbach/printername |
---|
14 | |
---|
15 | printcap=$(cat /etc/printcap | grep ^`echo $RET` || true) |
---|
16 | if [ ! -n "$printcap" ]; then |
---|
17 | # add the appropriate entry into /etc/printcap, /etc/lprng/printcap |
---|
18 | echo "$RET" >> /etc/printcap |
---|
19 | echo " :server" >> /etc/printcap |
---|
20 | echo " :cm=$RET music spooler" >> /etc/printcap |
---|
21 | echo " :lp=/dev/null" >> /etc/printcap |
---|
22 | echo " :if=|/usr/lib/gutenbach/gutenbach-filter" >> /etc/printcap |
---|
23 | echo " :sd=/var/spool/lpd/$RET" >> /etc/printcap |
---|
24 | echo " :ml=0:mx=0:sh:sf" >> /etc/printcap |
---|
25 | echo " :create_files" >> /etc/printcap |
---|
26 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.