Ignore:
Timestamp:
Jun 24, 2010, 1:48:08 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
1e04f22
Parents:
c6f9cbe
git-author:
Jessica B. Hamrick <jhamrick@…> (05/13/10 17:30:51)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/24/10 01:48:08)
Message:
  • More useful things in the README
  • Change perms to listen from everywhere
  • Conflict with pulseaudio, recommend removing bluez-alsa
File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rm/cups-revert-perms

    r53e9374 r4ac44b2  
    22
    33echo "Reverting changes to /etc/cups/cupsd.conf..." >&2
    4 mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak
    5 touch /etc/cups/cupsd.conf
     4conffile="/etc/cups/cupsd.conf"
    65
    7 sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < /etc/cups/cupsd.conf.bak > /etc/cups/cupsd.conf
     6mv "$conffile" "$conffile.bak"
     7touch "$conffile"
     8sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < "$conffile.bak" > "$conffile"
    89
    9 rm /etc/cups/cupsd.conf.bak
     10mv "$conffile" "$conffile.bak"
     11touch "$conffile"
     12while 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
     19done < "$conffile.bak"
     20
     21rm "$conffile.bak"
Note: See TracChangeset for help on using the changeset viewer.