source: gutenbach/debian/lib/gutenbach-get-config @ c631d1a

debianmacno-cupsnodebathenaweb
Last change on this file since c631d1a was c631d1a, checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago

Changed 'sipbmp3' to 'gutenbach' by popular demand. Have not checked for errors, yet.

  • Property mode set to 100755
File size: 649 bytes
Line 
1#!/usr/athena/bin/perl
2use strict;
3# Get configuration of gutenbach
4
5my $zephyr_class = "gutenbach";
6my $host = `hostname`;
7my $queue = "gutenbach";
8my $mixer = "PCM";
9my $channel = "Front Left";
10
11# Configuration
12my $config_file = "/usr/lib/gutenbach/config/gutenbach-filter-config.pl";
13if (-r $config_file) {
14    # Inline the configuration file
15    local $/;
16    my $fh;
17    open $fh, $config_file;
18    eval <$fh>;
19}
20
21my %config = (
22    'zephyr-class' => $zephyr_class,
23    'host' => $host,
24    'queue' => $queue,
25    'mixer' => $mixer,
26    'channel' => $channel,
27);
28
29foreach my $argv (@ARGV)
30{
31    #print $argv . "\n";
32    print $config{$argv};
33}
Note: See TracBrowser for help on using the repository browser.