source: sipbmp3/debian/inst/create-filter-config @ 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: 659 bytes
Line 
1#!/bin/sh -e
2
3. /usr/share/debconf/confmodule
4
5if [ ! -d /usr/lib/sipbmp3/config ]; then
6    mkdir /usr/lib/sipbmp3/config
7fi
8
9echo "Creating /usr/lib/sipbmp3/config/sipbmp3-filter-config.pl..." >&2
10if [ ! -e "/usr/lib/sipbmp3/config/sipbmp3-filter-config.pl" ]; then
11    touch /usr/lib/sipbmp3/config/sipbmp3-filter-config.pl
12
13    db_get sipbmp3/zephyrclass
14    echo "\$zephyr_class = \"$RET\";" >> /usr/lib/sipbmp3/config/sipbmp3-filter-config.pl
15    echo "\$hostname = \""`hostname`"\";" >> /usr/lib/sipbmp3/config/sipbmp3-filter-config.pl
16    db_get sipbmp3/printername
17    echo "\$queue = \"$RET\";" >> /usr/lib/sipbmp3/config/sipbmp3-filter-config.pl
18fi
Note: See TracBrowser for help on using the repository browser.