source: gutenbach/debian/lib/sipbmp3-get-config @ b1d66d4

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

Send zephyrs on volume change operations

  • Adds sipbmp3-get-config to retrieve configuration parameters.
  • Makes volume-mute and volume-set send zephyrs to -i $queue-volume@$host on volume-change requests
  • Property mode set to 100755
File size: 520 bytes
Line 
1#!/usr/athena/bin/perl
2use strict;
3# Get configuration of sipbmp3
4
5my $zephyr_class = "sipb-auto";
6my $host = "zsr";
7my $queue = "sipbmp3";
8
9# Configuration
10my $config_file = "/etc/sipbmp3-filter-config.pl";
11if (-r $config_file) {
12    # Inline the configuration file
13    local $/;
14    my $fh;
15    open $fh, $config_file;
16    eval <$fh>;
17}
18
19my %config = (
20    'zephyr-class' => $zephyr_class,
21    'host' => $host,
22    'queue' => $queue,
23);
24
25foreach my $argv (@ARGV)
26{
27    #print $argv . "\n";
28    print $config{$argv};
29}
Note: See TracBrowser for help on using the repository browser.