debianmacno-cupsnodebathenaweb
|
Last change
on this file since 331360d was
331360d,
checked in by Jessica B. Hamrick <jhamrick@…>, 16 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 | |
|---|
| 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 sipbmp3/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/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 |
|---|
| 26 | fi |
|---|
Note: See
TracBrowser
for help on using the repository browser.