debianmacno-cupsweb
Last change
on this file since 53936a5 was
53936a5,
checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago
|
Created a package around the remctl scripts to make
installation easy. Package installs and runs cleanly
on lbsg, but has not been tested on zsr yet.
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | PATH="$(dirname $0):$PATH" |
---|
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 | instance="$queue-volume@$host" |
---|
7 | |
---|
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 |
---|
17 | |
---|
18 | muted=$(volume-is-muted) |
---|
19 | mute_str=" [$muted]" |
---|
20 | if [ "$muted" = "unmuted" ]; then |
---|
21 | mute_str="" |
---|
22 | fi |
---|
23 | |
---|
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
TracBrowser
for help on using the repository browser.