debianmacno-cupsnodebathenaweb
Last change
on this file since 53e9374 was
53e9374,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Remove other submodules and move some things around
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[331360d] | 1 | #!/bin/sh -e |
---|
[1bdadfb] | 2 | |
---|
[331360d] | 3 | echo "Editing /etc/printcap..." >&2 |
---|
[1bdadfb] | 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 | |
---|
[e4cb270] | 12 | if [ -e /usr/lib/gutenbach/config/printername ]; then |
---|
| 13 | printername=$(cat /usr/lib/gutenbach/config/printername) |
---|
[331360d] | 14 | |
---|
[e4cb270] | 15 | printcap=$(cat /etc/printcap | grep ^`echo $printername` || true) |
---|
| 16 | if [ ! -n "$printcap" ]; then |
---|
[1bdadfb] | 17 | # add the appropriate entry into /etc/printcap, /etc/lprng/printcap |
---|
[e4cb270] | 18 | echo "$printername" >> /etc/printcap |
---|
| 19 | echo " :server" >> /etc/printcap |
---|
| 20 | echo " :cm=Gutenbach Music Spooler" >> /etc/printcap |
---|
| 21 | echo " :lp=/dev/null" >> /etc/printcap |
---|
| 22 | echo " :if=|/usr/lib/gutenbach/gutenbach-filter" >> /etc/printcap |
---|
| 23 | echo " :lf=/var/spool/lpd/$printername/log" >> /etc/printcap |
---|
| 24 | echo " :sd=/var/spool/lpd/$printername" >> /etc/printcap |
---|
[8fdf1a8] | 25 | echo " :ml=0:mx=0:sh" >> /etc/printcap |
---|
[e4cb270] | 26 | echo " :create_files" >> /etc/printcap |
---|
| 27 | echo " :auth_forward=kerberos5" >> /etc/printcap |
---|
| 28 | echo " :use_auth=kerberos5" >> /etc/printcap |
---|
| 29 | echo " :kerberos_id=daemon/"`hostname`".mit.edu@ATHENA.MIT.EDU" >> /etc/printcap |
---|
| 30 | echo " :kerberos_keytab=/etc/daemon.keytab" >> /etc/printcap |
---|
| 31 | fi |
---|
| 32 | else |
---|
| 33 | echo "Error: /usr/lib/gutenbach/config/printername does not exist!" >&2 |
---|
| 34 | exit 1 |
---|
[1bdadfb] | 35 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.