debianmacno-cupsweb
Last change
on this file since 9f011cf was
9f011cf,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Improve configuration and fine-tune zephyrs
|
-
Property mode set to
100755
|
File size:
489 bytes
|
Rev | Line | |
---|
[5c45626] | 1 | #!/bin/sh |
---|
[6bb3ffb] | 2 | PATH="$(dirname $0):$PATH" |
---|
[70b38df] | 3 | class=$(sipbmp3-get-config zephyr-class) |
---|
| 4 | host=$(sipbmp3-get-config host) |
---|
| 5 | queue=$(sipbmp3-get-config queue) |
---|
| 6 | instance="$queue-volume@$host" |
---|
[2249bb2] | 7 | |
---|
[9f011cf] | 8 | mixer=$(sipbmp3-get-config mixer) |
---|
[2249bb2] | 9 | channel=$(sipbmp3-get-config channel) |
---|
| 10 | |
---|
[9f011cf] | 11 | result=$(amixer set $mixer toggle) |
---|
| 12 | echo "$result" |
---|
| 13 | volstat=$(echo $result | grep "$channel" \ |
---|
| 14 | | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)' |
---|
| 15 | ) |
---|
[70b38df] | 16 | |
---|
[9f011cf] | 17 | zwrite -c $class -i $instance -d -n -m "$REMOTE_USER set volume $volstat" > /dev/null |
---|
Note: See
TracBrowser
for help on using the repository browser.