debianmacno-cupsnodebathenaweb
Last change
on this file since 28836c2 was
28836c2,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Improve configuration and fine-tune zephyrs
|
-
Property mode set to
100755
|
File size:
628 bytes
|
Line | |
---|
1 | #!/usr/athena/bin/perl |
---|
2 | use strict; |
---|
3 | # Get configuration of sipbmp3 |
---|
4 | |
---|
5 | my $zephyr_class = "sipb-test"; |
---|
6 | my $host = `hostname`; |
---|
7 | my $queue = "sipbmp3"; |
---|
8 | my $mixer = "Headphone"; |
---|
9 | my $channel = "Front Left"; |
---|
10 | |
---|
11 | # Configuration |
---|
12 | my $config_file = "/etc/sipbmp3-filter-config.pl"; |
---|
13 | if (-r $config_file) { |
---|
14 | # Inline the configuration file |
---|
15 | local $/; |
---|
16 | my $fh; |
---|
17 | open $fh, $config_file; |
---|
18 | eval <$fh>; |
---|
19 | } |
---|
20 | |
---|
21 | my %config = ( |
---|
22 | 'zephyr-class' => $zephyr_class, |
---|
23 | 'host' => $host, |
---|
24 | 'queue' => $queue, |
---|
25 | 'mixer' => $mixer, |
---|
26 | 'channel' => $channel, |
---|
27 | ); |
---|
28 | |
---|
29 | foreach my $argv (@ARGV) |
---|
30 | { |
---|
31 | #print $argv . "\n"; |
---|
32 | print $config{$argv}; |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.