Changeset 331360d for sipbmp3/debian/inst/edit-lpd.conf
- Timestamp:
- Sep 17, 2009, 2:55:47 AM (16 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- c631d1a
- Parents:
- c061ab8
- git-author:
- Jessica B. Hamrick <jhamrick@…> (09/17/09 02:55:47)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (09/17/09 02:55:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sipbmp3/debian/inst/edit-lpd.conf
rc061ab8 r331360d 1 #!/bin/sh 1 #!/bin/sh -e 2 2 3 echo "Editing /etc/lprng/lpd.conf..." >&2 3 4 # add the printcap path to lpd.conf 4 5 if [ -e /etc/lprng/lpd.conf ]; then … … 7 8 8 9 while read line; do 9 printcap=$(echo "$line" | grep ^printcap_path= )10 printcap=$(echo "$line" | grep ^printcap_path= || true) 10 11 if [ -n "$printcap" ]; then 11 lprngprintcap=$(echo "$line" | grep /etc/lprng/printcap )12 printcap=$(echo "$line" | grep /etc/printcap )12 lprngprintcap=$(echo "$line" | grep /etc/lprng/printcap || tre) 13 printcap=$(echo "$line" | grep /etc/printcap || true) 13 14 if [ ! -n "$lprngprintcap" ] && [ ! -n "$printcap" ]; then 14 15 echo "#$line" >> /etc/lprng/lpd.conf … … 28 29 29 30 # add lpd_listen_port to lpd.conf 30 lpd_listen_port=$(cat /etc/lprng/lpd.conf | grep ^lpd_listen_port=515 )31 lpd_listen_port=$(cat /etc/lprng/lpd.conf | grep ^lpd_listen_port=515 || true) 31 32 if [ ! -n "$lpd_listen_port" ]; then 32 33 echo "lpd_listen_port=515" >> /etc/lprng/lpd.conf
Note: See TracChangeset
for help on using the changeset viewer.