Changeset 53936a5 for gutenbach-remctl/volume-zephyr
- Timestamp:
- Jun 24, 2010, 12:52:07 AM (14 years ago)
- Branches:
- master, debian, mac, no-cups, web
- Children:
- 13fed18
- Parents:
- 8accd74
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/13/09 14:09:44)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (06/24/10 00:52:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach-remctl/volume-zephyr
r8accd74 r53936a5 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 class=$( sipbmp3-get-config zephyr-class)4 host=$( sipbmp3-get-config host)5 queue=$( sipbmp3-get-config queue)3 class=$(/usr/lib/gutenbach/gutenbach-get-config zephyr-class) 4 host=$(/usr/lib/gutenbach/gutenbach-get-config host) 5 queue=$(/usr/lib/gutenbach/gutenbach-get-config queue) 6 6 instance="$queue-volume@$host" 7 7 8 mixer=$(sipbmp3-get-config mixer) 9 channel=$(sipbmp3-get-config channel) 8 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 9 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 10 11 echo "Class: $class" >> /tmp/gutenbach-remctl.log 12 echo "Host: $host" >> /tmp/gutenbach-remctl.log 13 echo "Queue: $queue" >> /tmp/gutenbach-remctl.log 14 echo "Instance: $instance" >> /tmp/gutenbach-remctl.log 15 echo "Mixer: $mixer" >> /tmp/gutenbach-remctl.log 16 echo "Channel: $channel" >> /tmp/gutenbach-remctl.log 10 17 11 18 muted=$(volume-is-muted) … … 15 22 fi 16 23 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 24 start-stop-daemon --stop --oknodo --pidfile /usr/lib/gutenbach/gutenbach-zephyr >/dev/null 2>&1 25 start-stop-daemon --start --pidfile /usr/lib/gutenbach/gutenbach-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 26 27 echo "sleep 10 && zwrite -c $class -i $instance -d -n -m '$REMOTE_USER set volume $(volume-get)$mute_str' > /dev/null" >> /tmp/gutenbach-remctl.log 28 echo "" >> /tmp/gutenbach-remctl.log
Note: See TracChangeset
for help on using the changeset viewer.