From 12c77cdbfa4ec48d935af3ae7cf1118e38bec6e1 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 May 2011 15:47:21 +0200 Subject: lowered filesystem hierarchy--everything are modules --- streams/deepmix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 streams/deepmix (limited to 'streams/deepmix') diff --git a/streams/deepmix b/streams/deepmix new file mode 100755 index 00000000..8b13bed6 --- /dev/null +++ b/streams/deepmix @@ -0,0 +1,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 -- cgit v1.2.3