summaryrefslogtreecommitdiffstats
path: root/streams/deepmix
blob: b8f8fba8455688237f7a26c19139b7ecbfa0fc9d (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
#! /bin/bash
set -euf
CMD="mplayer http://deepmix.ru/deepmix128.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