debianmacno-cupsnodebathenaweb
Last change
on this file since 53e9374 was
53e9374,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Remove other submodules and move some things around
|
-
Property mode set to
100755
|
File size:
563 bytes
|
Rev | Line | |
---|
[331360d] | 1 | #!/bin/sh -e |
---|
[1bdadfb] | 2 | |
---|
| 3 | # make sure directories exist for checkpc |
---|
[331360d] | 4 | echo "Running checkpc..." >&2 |
---|
[1bdadfb] | 5 | if [ ! -d /var/spool/lpd ]; then |
---|
| 6 | mkdir /var/spool/lpd |
---|
| 7 | mkdir /var/spool/lpd/%P |
---|
| 8 | else |
---|
| 9 | if [ ! -d /var/spool/lpd/%P ]; then |
---|
| 10 | mkdir /var/spool/lpd/%P |
---|
| 11 | fi |
---|
| 12 | fi |
---|
| 13 | chmod og=rwx /var/spool/lpd |
---|
| 14 | chmod og=rwx /var/spool/lpd/%P |
---|
[331360d] | 15 | |
---|
[e4cb270] | 16 | if [ -e /usr/lib/gutenbach/config/printername ]; then |
---|
| 17 | printername=$(cat /usr/lib/gutenbach/config/printername) |
---|
| 18 | /usr/sbin/checkpc -P"$printername" -f |
---|
| 19 | else |
---|
| 20 | echo "Error: /usr/lib/gutenbach/config/printername does not exist!" >&2 |
---|
[f9c9a10] | 21 | exit 1 |
---|
[e4cb270] | 22 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.