source:
gutenbach/debian/rm/revert_lpd.conf
@
9a301c8
Last change on this file since 9a301c8 was 9a301c8, checked in by Jessica Hamrick <jhamrick@…>, 14 years ago | |
---|---|
|
|
File size: 349 bytes |
Line | |
---|---|
1 | #!/bin/sh -e |
2 | |
3 | echo "Reverting changes to /etc/lprng/lpd.conf..." >&2 |
4 | mv /etc/lprng/lpd.conf /etc/lprng/lpd.conf.bak |
5 | touch /etc/lprng/lpd.conf |
6 | while read line; do |
7 | lpd_listen_port=$(echo "$line" | grep ^lpd_listen_port=515$ || true) |
8 | if [ -z "$lpd_listen_port" ]; then |
9 | echo "$line" >> /etc/lprng/lpd.conf |
10 | fi |
11 | done < /etc/lprng/lpd.conf.bak |
Note: See TracBrowser
for help on using the repository browser.