summaryrefslogtreecommitdiffstats
path: root/streams/groove
blob: 935a16d90feca3b7ec05daaa729d50a2da33432f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
set -euf
CMD="exec mplayer http://somafm.com/groovesalad.pls"
function start() {
  stop
  tmux start-server 
  tmux new-session -d "$CMD" 
}
function stop()
{
  pkill mplayer || :
}

case "$1" in
  start)
    start
  stop)
    stop
    ;;
  restart)
    stop
    start
    ;;
  *)
    echo "aidsballs"
  ;;
esac