debianmacno-cupsnodebathenaweb
Last change
on this file since 1bdadfb was
1bdadfb,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
debuild runs without any lintian errors.
|
-
Property mode set to
100755
|
File size:
863 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | if [ ! -e /etc/printcap ]; then |
---|
4 | echo "/etc/printcap does not exist, creating it..." |
---|
5 | touch /etc/printcap |
---|
6 | fi |
---|
7 | |
---|
8 | if [ ! -e /etc/lprng/printcap ]; then |
---|
9 | echo "/etc/lprng/printcap does not exist, creating it..." |
---|
10 | ln -s /etc/printcap /etc/lprng/printcap |
---|
11 | fi |
---|
12 | |
---|
13 | printcap=$(cat /etc/printcap | grep '^sipbmp3') |
---|
14 | if [ ! -n "$printcap" ]; then |
---|
15 | # add the appropriate entry into /etc/printcap, /etc/lprng/printcap |
---|
16 | echo "No entry for sipbmp3, adding one..." |
---|
17 | echo "sipbmp3" >> /etc/printcap |
---|
18 | echo " :server" >> /etc/printcap |
---|
19 | echo " :cm=sipbmp3 music spooler" >> /etc/printcap |
---|
20 | echo " :lp=/dev/null" >> /etc/printcap |
---|
21 | echo " :if=|/usr/lib/sipbmp3/sipbmp3-filter" >> /etc/printcap |
---|
22 | echo " :sd=/var/spool/lpd/sipbmp3" >> /etc/printcap |
---|
23 | echo " :ml=0:mx=0:sh:sf" >> /etc/printcap |
---|
24 | echo " :create_files" >> /etc/printcap |
---|
25 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.