source: gutenbach/debian/inst/cups-add-printer @ c503858

debianmacno-cupsnodebathenaweb
Last change on this file since c503858 was c503858, checked in by Yuri Lin <yuri@…>, 14 years ago

New scripts to add printer and set permissions using CUPS; change the post-installation script to use these new scripts.

  • Property mode set to 100755
File size: 318 bytes
Line 
1#!/bin/sh
2
3if [ -e /usr/lib/gutenbach/config/printername ]; then
4    printername="$(cat /usr/lib/gutenbach/config/printername)"
5
6    lpadmin -p "$printername" \
7            -E -v gutenbach:/dev/null \
8            -D "Gutenbach Music Spooler"
9
10else
11    echo "Error: /usr/lib/gutenbach/config/printername does not exist"
12    exit 1
13fi
Note: See TracBrowser for help on using the repository browser.