debianmacno-cupsnodebathenaweb
Last change
on this file since 5239eb5 was
a33a064,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Moved cd*, status*, and volume* scripts to the gutenbach-remctl package,
and fixed paths in gutenbach-get-config.
|
-
Property mode set to
100755
|
File size:
685 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | use strict; |
---|
3 | # Get configuration of gutenbach |
---|
4 | |
---|
5 | my $zephyr_class = `hostname`; |
---|
6 | chomp($zephyr_class); |
---|
7 | my $host = `hostname`; |
---|
8 | chomp($zephyr_class); |
---|
9 | my $queue = "gutenbach"; |
---|
10 | my $mixer = "PCM"; |
---|
11 | my $channel = "Front Left"; |
---|
12 | |
---|
13 | # Configuration |
---|
14 | my $config_file = "/usr/lib/gutenbach/config/gutenbach-filter-config.pl"; |
---|
15 | if (-r $config_file) { |
---|
16 | # Inline the configuration file |
---|
17 | local $/; |
---|
18 | my $fh; |
---|
19 | open $fh, $config_file; |
---|
20 | eval <$fh>; |
---|
21 | } |
---|
22 | |
---|
23 | my %config = ( |
---|
24 | 'zephyr-class' => $zephyr_class, |
---|
25 | 'host' => $host, |
---|
26 | 'queue' => $queue, |
---|
27 | 'mixer' => $mixer, |
---|
28 | 'channel' => $channel, |
---|
29 | ); |
---|
30 | |
---|
31 | foreach my $argv (@ARGV) |
---|
32 | { |
---|
33 | #print $argv . "\n"; |
---|
34 | print $config{$argv}; |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.