source: sipbmp3/debian/inst/edit-printcap @ 331360d

debianmacno-cupsnodebathenaweb
Last change on this file since 331360d was 331360d, checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago

Added debconf implementation and clean uninstall, but the actual functionality of sipbmp3 seems to be broken - it will send a zephyr and say it's playing the song, and then say "playback completed sucessfully", but both zephyrs come at the ~same time and there is no sound output.

  • Property mode set to 100755
File size: 798 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 sipbmp3/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/sipbmp3/sipbmp3-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.