debianmacno-cupsweb
Last change
on this file since 8120872 was
30beeab,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Remove "gutenbach-" from directory names and rename "gutenbach" to "gutenbach-server"
|
-
Property mode set to
100755
|
File size:
629 bytes
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | |
---|
3 | echo "Reverting changes to /etc/lprng/lpd.perms..." >&2 |
---|
4 | mv /etc/lprng/lpd.perms /etc/lprng/lpd.perms.bak |
---|
5 | touch /etc/lprng/lpd.perms |
---|
6 | while read line; do |
---|
7 | reject_not_server=$(echo "$line" | grep '^#REJECT NOT SERVER$' || true) |
---|
8 | if [ ! -z "$reject_not_server" ]; then |
---|
9 | echo "REJECT NOT SERVER" >> /etc/lprng/lpd.perms |
---|
10 | else |
---|
11 | reject_service=$(echo "$line" | grep '^#REJECT SERVICE=M$' || true) |
---|
12 | if [ ! -z "$reject_service" ]; then |
---|
13 | echo "REJECT SERVICE=M" >> /etc/lprng/lpd.perms |
---|
14 | else |
---|
15 | echo "$line" >> /etc/lprng/lpd.perms |
---|
16 | fi |
---|
17 | fi |
---|
18 | done < /etc/lprng/lpd.perms.bak |
---|
19 | rm /etc/lprng/lpd.perms.bak |
---|
Note: See
TracBrowser
for help on using the repository browser.