Changeset 53936a5
- 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)
- Location:
- gutenbach-remctl
- Files:
-
- 10 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach-remctl/.gitignore
r807ecdb r53936a5 1 1 *~ 2 vm*3 ksplice*4 voldaemon5 log6 printcap -
gutenbach-remctl/cd
r6991563 r53936a5 1 cd cddb /usr/lib/gutenbach/ cd-cddb ANYUSER2 cd cddb-get /usr/lib/gutenbach/ cd-cddb-get ANYUSER3 cd play /usr/lib/gutenbach/ cd-play ANYUSER1 cd cddb /usr/lib/gutenbach/remctl/cd-cddb ANYUSER 2 cd cddb-get /usr/lib/gutenbach/remctl/cd-cddb-get ANYUSER 3 cd play /usr/lib/gutenbach/remctl/cd-play ANYUSER -
gutenbach-remctl/cd-cddb-get
r6bb3ffb r53936a5 3 3 4 4 CDDBURL="http://freedb.freedb.org/~cddb/cddb.cgi" 5 MYUSER=" sipbmp3"6 MYHOST= "zsr.mit.edu"5 MYUSER="gutenbach" 6 MYHOST=`hostname`".mit.edu" 7 7 8 8 DISCID=$(cd-discid /dev/cdrom 2>/dev/null) || exit 1 … … 13 13 TRACKS="$2" 14 14 15 mkdir -p /var/cache/ sipbmp315 mkdir -p /var/cache/gutenbach 16 16 17 CACHEFILE="/var/cache/ sipbmp3/$ID"17 CACHEFILE="/var/cache/gutenbach/$ID" 18 18 19 19 if [ ! -e "$CACHEFILE" ]; then -
gutenbach-remctl/cd-play
r6bb3ffb r53936a5 5 5 6 6 CACHE=$(cd-cddb-get) 7 8 printername=$(/usr/lib/gutenbach/gutenbach-get-config queue) 7 9 8 10 if [ "$?" = 0 ]; then … … 18 20 fi 19 21 20 echo "cdda://$(($T - 1))" | mit-lpr -P sipbmp3@localhost -J "Track $T$DESC";22 echo "cdda://$(($T - 1))" | mit-lpr -P"$queue"@localhost -J "Track $T$DESC"; 21 23 echo "Queued Track $T$DESC"; 22 24 } -
gutenbach-remctl/status
r6991563 r53936a5 1 status get /usr/lib/gutenbach/ status-get ANYUSER2 status clear /usr/lib/gutenbach/ status-clear ANYUSER1 status get /usr/lib/gutenbach/remctl/status-get ANYUSER 2 status clear /usr/lib/gutenbach/remctl/status-clear ANYUSER -
gutenbach-remctl/status-clear
r6bb3ffb r53936a5 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 > /var/run/ sipbmp3/status3 > /var/run/gutenbach/status -
gutenbach-remctl/status-get
r6bb3ffb r53936a5 1 1 #!/bin/sh 2 2 PATH="$(dirname $0):$PATH" 3 cat /var/run/ sipbmp3/status3 cat /var/run/gutenbach/status -
gutenbach-remctl/volume
r6991563 r53936a5 1 volume set /usr/lib/gutenbach/ volume-set ANYUSER2 volume get /usr/lib/gutenbach/ volume-get ANYUSER3 volume show /usr/lib/gutenbach/ volume-show ANYUSER4 volume mute /usr/lib/gutenbach/ volume-mute ANYUSER5 volume up /usr/lib/gutenbach/ volume-up ANYUSER6 volume down /usr/lib/gutenbach/ volume-down ANYUSER7 volume is-muted /usr/lib/gutenbach/ volume-is-muted ANYUSER1 volume set /usr/lib/gutenbach/remctl/volume-set ANYUSER 2 volume get /usr/lib/gutenbach/remctl/volume-get ANYUSER 3 volume show /usr/lib/gutenbach/remctl/volume-show ANYUSER 4 volume mute /usr/lib/gutenbach/remctl/volume-mute ANYUSER 5 volume up /usr/lib/gutenbach/remctl/volume-up ANYUSER 6 volume down /usr/lib/gutenbach/remctl/volume-down ANYUSER 7 volume is-muted /usr/lib/gutenbach/remctl/volume-is-muted ANYUSER 8 8 9 v set /usr/lib/gutenbach/ volume-set ANYUSER10 v get /usr/lib/gutenbach/ volume-get ANYUSER11 v show /usr/lib/gutenbach/ volume-show ANYUSER12 v mute /usr/lib/gutenbach/ volume-mute ANYUSER13 v up /usr/lib/gutenbach/ volume-up ANYUSER14 v down /usr/lib/gutenbach/ volume-down ANYUSER15 v is-muted /usr/lib/gutenbach/ volume-is-muted ANYUSER9 v set /usr/lib/gutenbach/remctl/volume-set ANYUSER 10 v get /usr/lib/gutenbach/remctl/volume-get ANYUSER 11 v show /usr/lib/gutenbach/remctl/volume-show ANYUSER 12 v mute /usr/lib/gutenbach/remctl/volume-mute ANYUSER 13 v up /usr/lib/gutenbach/remctl/volume-up ANYUSER 14 v down /usr/lib/gutenbach/remctl/volume-down ANYUSER 15 v is-muted /usr/lib/gutenbach/remctl/volume-is-muted ANYUSER 16 16 17 v u /usr/lib/gutenbach/ volume-up ANYUSER18 v d /usr/lib/gutenbach/ volume-down ANYUSER17 v u /usr/lib/gutenbach/remctl/volume-up ANYUSER 18 v d /usr/lib/gutenbach/remctl/volume-down ANYUSER 19 19 20 volume u /usr/lib/gutenbach/ volume-up ANYUSER21 volume d /usr/lib/gutenbach/ volume-down ANYUSER20 volume u /usr/lib/gutenbach/remctl/volume-up ANYUSER 21 volume d /usr/lib/gutenbach/remctl/volume-down ANYUSER 22 22 23 volume help /usr/lib/gutenbach/ volume-help ANYUSER24 v help /usr/lib/gutenbach/ volume-help ANYUSER25 help ALL /usr/lib/gutenbach/ volume-help ANYUSER23 volume help /usr/lib/gutenbach/remctl/volume-help ANYUSER 24 v help /usr/lib/gutenbach/remctl/volume-help ANYUSER 25 help ALL /usr/lib/gutenbach/remctl/volume-help ANYUSER -
gutenbach-remctl/volume-get
r9f011cf r53936a5 2 2 PATH="$(dirname $0):$PATH" 3 3 4 mixer=$( sipbmp3-get-config mixer)5 channel=$( sipbmp3-get-config channel)4 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 7 amixer get $mixer | grep "$channel" \ -
gutenbach-remctl/volume-is-muted
r8ed9a02 r53936a5 2 2 PATH="$(dirname $0):$PATH" 3 3 4 mixer=$( sipbmp3-get-config mixer)5 channel=$( sipbmp3-get-config channel)4 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 7 volstat=$(amixer get $mixer | grep "$channel" \ -
gutenbach-remctl/volume-mute
r436e901 r53936a5 2 2 PATH="$(dirname $0):$PATH" 3 3 4 mixer=$( sipbmp3-get-config mixer)5 channel=$( sipbmp3-get-config channel)4 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 7 amixer set $mixer toggle > /dev/null -
gutenbach-remctl/volume-set
r8ed9a02 r53936a5 2 2 PATH="$(dirname $0):$PATH" 3 3 4 mixer=$( sipbmp3-get-config mixer)5 channel= "$(sipbmp3-get-config channel)"4 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 7 amixer set $mixer "$2" | grep "$channel" \ -
gutenbach-remctl/volume-show
r8ed9a02 r53936a5 2 2 PATH="$(dirname $0):$PATH" 3 3 4 mixer=$( sipbmp3-get-config mixer)5 channel=$( sipbmp3-get-config channel)4 mixer=$(/usr/lib/gutenbach/gutenbach-get-config mixer) 5 channel=$(/usr/lib/gutenbach/gutenbach-get-config channel) 6 6 7 7 amixer get $mixer -
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.