debianmacno-cupsnodebathenaweb
Last change
on this file since f01bb25 was
f01bb25,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
Don't zephyr volume changes until there's been no activity for 10 seconds.
|
-
Property mode set to
100755
|
File size:
672 bytes
|
Rev | Line | |
---|
[9f0c46e] | 1 | #!/bin/sh |
---|
| 2 | PATH="$(dirname $0):$PATH" |
---|
| 3 | class=$(sipbmp3-get-config zephyr-class) |
---|
| 4 | host=$(sipbmp3-get-config host) |
---|
| 5 | queue=$(sipbmp3-get-config queue) |
---|
| 6 | instance="$queue-volume@$host" |
---|
| 7 | |
---|
| 8 | mixer=$(sipbmp3-get-config mixer) |
---|
| 9 | channel=$(sipbmp3-get-config channel) |
---|
| 10 | |
---|
| 11 | muted=$(volume-is-muted) |
---|
| 12 | mute_str=" [$muted]" |
---|
| 13 | if [ "$muted" = "unmuted" ]; then |
---|
| 14 | mute_str="" |
---|
| 15 | fi |
---|
| 16 | |
---|
[f01bb25] | 17 | start-stop-daemon --stop --oknodo --pidfile /var/run/sipbmp3-zephyr >/dev/null 2>&1 |
---|
| 18 | start-stop-daemon --start --pidfile /var/run/sipbmp3-zephyr --make-pidfile --background --exec /bin/sh -- -c "sleep 10 && zwrite -c $class -i $instance -d -n -m '$REMOTE_USER set volume $(volume-get)$mute_str' > /dev/null" >/dev/null 2>&1 |
---|
Note: See
TracBrowser
for help on using the repository browser.