source: gutenbach/debian/inst/run-checkpc @ 593b5e1

debianmacno-cupsweb
Last change on this file since 593b5e1 was 593b5e1, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

Move gutenbach package files into a sub-directory (in order to add gutenbach-client package later)

  • Property mode set to 100755
File size: 563 bytes
Line 
1#!/bin/sh -e
2
3# make sure directories exist for checkpc
4echo "Running checkpc..." >&2
5if [ ! -d /var/spool/lpd ]; then
6    mkdir /var/spool/lpd
7    mkdir /var/spool/lpd/%P
8else
9    if [ ! -d /var/spool/lpd/%P ]; then
10        mkdir /var/spool/lpd/%P
11    fi
12fi
13chmod og=rwx /var/spool/lpd
14chmod og=rwx /var/spool/lpd/%P
15
16if [ -e /usr/lib/gutenbach/config/printername ]; then
17    printername=$(cat /usr/lib/gutenbach/config/printername)
18    /usr/sbin/checkpc -P"$printername" -f
19else
20    echo "Error: /usr/lib/gutenbach/config/printername does not exist!" >&2
21    exit 1
22fi
Note: See TracBrowser for help on using the repository browser.