- Timestamp:
- Jun 24, 2010, 1:48:08 AM (14 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/rm/cups-revert-perms
r53e9374 r4ac44b2 2 2 3 3 echo "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 4 conffile="/etc/cups/cupsd.conf" 6 5 7 sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < /etc/cups/cupsd.conf.bak > /etc/cups/cupsd.conf 6 mv "$conffile" "$conffile.bak" 7 touch "$conffile" 8 sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < "$conffile.bak" > "$conffile" 8 9 9 rm /etc/cups/cupsd.conf.bak 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 TracChangeset
for help on using the changeset viewer.