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:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | |
---|
3 | echo "Creating /usr/lib/gutenbach/config/gutenbach-filter-config.pl..." >&2 |
---|
4 | if [ -e "/usr/lib/gutenbach/config/gutenbach-filter-config.pl" ]; then |
---|
5 | rm /usr/lib/gutenbach/config/gutenbach-filter-config.pl |
---|
6 | fi |
---|
7 | |
---|
8 | failed= |
---|
9 | if [ -e /usr/lib/gutenbach/config/printername ]; then |
---|
10 | printername=$(cat /usr/lib/gutenbach/config/printername) |
---|
11 | else |
---|
12 | failed="yes" |
---|
13 | fi |
---|
14 | if [ -e /usr/lib/gutenbach/config/hostname ]; then |
---|
15 | hostname=$(cat /usr/lib/gutenbach/config/hostname) |
---|
16 | else |
---|
17 | failed="yes" |
---|
18 | fi |
---|
19 | if [ -e /usr/lib/gutenbach/config/zephyrclass ]; then |
---|
20 | zephyrclass=$(cat /usr/lib/gutenbach/config/zephyrclass) |
---|
21 | else |
---|
22 | failed="yes" |
---|
23 | fi |
---|
24 | |
---|
25 | mixer="PCM" |
---|
26 | channel="Front Left" |
---|
27 | |
---|
28 | if [ -z "$failed" ]; then |
---|
29 | echo "\$zephyr_class = \""$zephyrclass"\";" >> /usr/lib/gutenbach/config/gutenbach-filter-config.pl |
---|
30 | echo "\$host = \""$hostname"\";" >> /usr/lib/gutenbach/config/gutenbach-filter-config.pl |
---|
31 | echo "\$queue = \""$printername"\";" >> /usr/lib/gutenbach/config/gutenbach-filter-config.pl |
---|
32 | echo "\$mixer = \""$mixer"\";" >> /usr/lib/gutenbach/config/gutenbach-filter-config.pl |
---|
33 | echo "\$channel = \""$channel"\";" >> /usr/lib/gutenbach/config/gutenbach-filter-config.pl |
---|
34 | else |
---|
35 | echo "Error: One of /usr/lib/gutenbach/config/{printername,hostname,zephyrclass} does not exist!" >&2 |
---|
36 | exit 1 |
---|
37 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.