debianmacno-cupsweb
Last change
on this file since 335786f was
30beeab,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Remove "gutenbach-" from directory names and rename "gutenbach" to "gutenbach-server"
|
-
Property mode set to
100755
|
File size:
1.2 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 | config_file="/usr/lib/gutenbach/config/gutenbach-filter-config.pl" |
---|
28 | |
---|
29 | if [ -z "$failed" ]; then |
---|
30 | echo "\$zephyr_class = \""$zephyrclass"\";" >> "$config_file" |
---|
31 | echo "\$host = \""$hostname"\";" >> "$config_file" |
---|
32 | echo "\$queue = \""$printername"\";" >> "$config_file" |
---|
33 | echo "\$mixer = \""$mixer"\";" >> "$config_file" |
---|
34 | echo "\$channel = \""$channel"\";" >> "$config_file" |
---|
35 | echo "1;" >> "$config_file" |
---|
36 | else |
---|
37 | echo "Error: One of /usr/lib/gutenbach/config/{printername,hostname,zephyrclass} does not exist!" >&2 |
---|
38 | exit 1 |
---|
39 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.