debianmacno-cupsnodebathenaweb
Last change
on this file since 1e04f22 was
4ac44b2,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
- More useful things in the README
- Change perms to listen from everywhere
- Conflict with pulseaudio, recommend removing bluez-alsa
|
-
Property mode set to
100755
|
File size:
588 bytes
|
Rev | Line | |
---|
[4efd348] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | echo "Reverting changes to /etc/cups/cupsd.conf..." >&2 |
---|
[4ac44b2] | 4 | conffile="/etc/cups/cupsd.conf" |
---|
[4efd348] | 5 | |
---|
[4ac44b2] | 6 | mv "$conffile" "$conffile.bak" |
---|
| 7 | touch "$conffile" |
---|
| 8 | sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < "$conffile.bak" > "$conffile" |
---|
[4efd348] | 9 | |
---|
[4ac44b2] | 10 | mv "$conffile" "$conffile.bak" |
---|
| 11 | touch "$conffile" |
---|
| 12 | while read line; do |
---|
| 13 | listen_localhost=$(echo "$line" | grep '^#GUTENBACH' || true) |
---|
| 14 | if [ -n "$listen_localhost" ]; then |
---|
| 15 | echo "$(echo $line | sed s/#GUTENBACH//)" >> "$conffile" |
---|
| 16 | else |
---|
| 17 | echo "$line" >> "$conffile" |
---|
| 18 | fi |
---|
| 19 | done < "$conffile.bak" |
---|
| 20 | |
---|
| 21 | rm "$conffile.bak" |
---|
Note: See
TracBrowser
for help on using the repository browser.