debianmacno-cupsnodebathenaweb
Last change
on this file since 2babe17 was
2babe17,
checked in by Jessica Hamrick <jhamrick@…>, 16 years ago
|
Installing the debian package should make the printing of music files
to the lprmp3 printer work. Still need to add in support for uninstalling
the package and using debconf (so users can add in their own configuration)
|
-
Property mode set to
100755
|
File size:
694 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | if [ ! -e /etc/printcap ]; then |
---|
4 | touch /etc/printcap |
---|
5 | fi |
---|
6 | |
---|
7 | if [ ! -e /etc/lprng/printcap ]; then |
---|
8 | ln -s /etc/printcap /etc/lprng/printcap |
---|
9 | fi |
---|
10 | |
---|
11 | printcap=$(cat /etc/printcap | grep '^lprmp3') |
---|
12 | if [ ! -n "$printcap" ]; then |
---|
13 | # add the appropriate entry into /etc/printcap, /etc/lprng/printcap |
---|
14 | echo "lprmp3" >> /etc/printcap |
---|
15 | echo " :server" >> /etc/printcap |
---|
16 | echo " :cm=lprmp3 music spooler" >> /etc/printcap |
---|
17 | echo " :lp=/dev/null" >> /etc/printcap |
---|
18 | echo " :if=|/usr/lib/sipbmp3/sipbmp3-filter" >> /etc/printcap |
---|
19 | echo " :sd=/var/spool/lpd/lprmp3" >> /etc/printcap |
---|
20 | echo " :ml=0:mx=0:sh:sf" >> /etc/printcap |
---|
21 | echo " :create_files" >> /etc/printcap |
---|
22 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.