debianmacno-cupsnodebathenaweb
Last change
on this file since 2babe17 was
2babe17,
checked in by Jessica Hamrick <jhamrick@…>, 16 years ago
|
Installing the debian package should make the printing of music files
to the lprmp3 printer work. Still need to add in support for uninstalling
the package and using debconf (so users can add in their own configuration)
|
-
Property mode set to
100755
|
File size:
742 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 |
---|
7 | if [ -e /etc/lprng/lpd.perms ]; then |
---|
8 | mv /etc/lprng/lpd.perms /etc/lprng/lpd.perms.bak |
---|
9 | touch /etc/lprng/lpd.perms |
---|
10 | |
---|
11 | while read line; do |
---|
12 | reject_not_server=$(echo "$line" | grep '^REJECT NOT SERVER') |
---|
13 | if [ -n "$reject_not_server" ]; then |
---|
14 | echo "#$line" >> /etc/lprng/lpd.perms |
---|
15 | else |
---|
16 | reject_service=$(echo "$line" | grep '^REJECT SERVICE=M') |
---|
17 | if [ -n "$reject_service" ]; then |
---|
18 | echo "#line" >> /etc/lprng/lpd.perms |
---|
19 | else |
---|
20 | echo "$line" >> /etc/lprng/lpd.perms |
---|
21 | fi |
---|
22 | fi |
---|
23 | done < /etc/lprng/lpd.perms.bak |
---|
24 | rm /etc/lprng/lpd.perms.bak |
---|
25 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.