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:
696 bytes
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | |
---|
3 | echo "Reverting changes to /etc/printcap..." >&2 |
---|
4 | . /usr/share/debconf/confmodule |
---|
5 | db_get sipbmp3/printername |
---|
6 | |
---|
7 | mv /etc/printcap /etc/printcap.bak |
---|
8 | touch /etc/printcap |
---|
9 | foundprinter="false" |
---|
10 | while read line; do |
---|
11 | printername=$(echo "$line" | grep ^`echo $RET`$ || true) |
---|
12 | if [ -n "$printername" ]; then |
---|
13 | foundprinter="true" |
---|
14 | else |
---|
15 | if [ "$foundprinter"="true" ]; then |
---|
16 | configline=$(echo "$line" | grep ^[[:space:]]*: || true) |
---|
17 | if [ -z "$configline" ]; then |
---|
18 | foundprinter="false" |
---|
19 | echo "$line" >> /etc/printcap |
---|
20 | fi |
---|
21 | else |
---|
22 | echo "$line" >> /etc/printcap |
---|
23 | fi |
---|
24 | fi |
---|
25 | done < /etc/printcap.bak |
---|
26 | rm /etc/printcap.bak |
---|
Note: See
TracBrowser
for help on using the repository browser.