blob: 8b13bed6da7ebf174e98335b58bfc86820316f78 (
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="while :; do mplayer http://deepmix.ru/deepmix128.pls; done"
function start() {
stop
tmux list-sessions &&
tmux new-window "$CMD" ||
tmux new-session "$CMD"
}
function stop() {
pkill mplayer || :
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "aidsballs"
;;
esac
|