source: gutenbach/debian/inst/edit-printcap @ c631d1a

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
3echo "Editing /etc/printcap..." >&2
4if [ ! -e /etc/printcap ]; then
5    touch /etc/printcap
6fi
7
8if [ ! -e /etc/lprng/printcap ]; then
9    ln -s /etc/printcap /etc/lprng/printcap
10fi
11
12. /usr/share/debconf/confmodule
13db_get gutenbach/printername
14
15printcap=$(cat /etc/printcap | grep ^`echo $RET` || true)
16if [ ! -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
26fi
Note: See TracBrowser for help on using the repository browser.