debianmacno-cupsweb
|
Last change
on this file since 9c0279e was
9c0279e,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
|
Create Makefiles and fix install scripts.
|
-
Property mode set to
100755
|
|
File size:
377 bytes
|
| Rev | Line | |
|---|
| [8ed9a02] | 1 | #!/bin/sh |
|---|
| 2 | PATH="$(dirname $0):$PATH" |
|---|
| 3 | |
|---|
| [53936a5] | 4 | mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) |
|---|
| 5 | channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) |
|---|
| [8ed9a02] | 6 | |
|---|
| 7 | volstat=$(amixer get $mixer | grep "$channel" \ |
|---|
| 8 | | perl -lne 'print $1 if (/: Playback .*\[(on|off)\]$/)' |
|---|
| 9 | ) |
|---|
| 10 | |
|---|
| 11 | case "$volstat" in |
|---|
| 12 | on) result=unmuted;; |
|---|
| 13 | off) result=muted;; |
|---|
| 14 | *) result=unknown;; |
|---|
| 15 | esac |
|---|
| 16 | |
|---|
| 17 | echo $result |
|---|
Note: See
TracBrowser
for help on using the repository browser.