source: sipbmp3/debian/inst/edit-lpd.perms @ 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: 801 bytes
Line 
1#!/bin/sh
2
3# make lpd less paranoid about accepting connections
4# (comment out REJECT NOT SERVER)
5# allow other users to dequeue music
6# (comment out REJECT SERVICE=M
7echo "Editing /etc/lprng/lpd.perms..." >&2
8if [ -e /etc/lprng/lpd.perms ]; then
9    mv /etc/lprng/lpd.perms /etc/lprng/lpd.perms.bak
10    touch /etc/lprng/lpd.perms 
11
12    while read line; do
13        reject_not_server=$(echo "$line" | grep '^REJECT NOT SERVER' || true)
14        if [ -n "$reject_not_server" ]; then
15            echo "#$line" >> /etc/lprng/lpd.perms
16        else
17            reject_service=$(echo "$line" | grep '^REJECT SERVICE=M' || true)
18            if [ -n "$reject_service" ]; then
19                echo "#line" >> /etc/lprng/lpd.perms
20            else
21                echo "$line" >> /etc/lprng/lpd.perms
22            fi
23        fi
24    done < /etc/lprng/lpd.perms.bak
25    rm /etc/lprng/lpd.perms.bak
26fi
Note: See TracBrowser for help on using the repository browser.