source: gutenbach/debian/inst/edit-lpd.perms @ 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: 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.