From 00644ee4a7e2f6eed5ae7d5d5a8a977e05047574 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 4 Aug 2011 00:04:03 +0200 Subject: streams/ fixed starter script for streams all stream starter scripts are now symlinks. streams now is able to list all implemented streams --- streams/radiotux | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) mode change 100755 => 120000 streams/radiotux (limited to 'streams/radiotux') diff --git a/streams/radiotux b/streams/radiotux deleted file mode 100755 index 9d671493..00000000 --- a/streams/radiotux +++ /dev/null @@ -1,29 +0,0 @@ -#! /bin/bash -set -euf -function stop() -{ - pkill mplayer || true -} - -CMD="while true; do exec mplayer http://streams.xenim.de/radiotux.ogg; sleep 1;done" -case "$1" in - start) - stop - if tmux list-sessions; - then - tmux new-window "$CMD" & - else - tmux new-session "$CMD" & - fi - ;; - stop) - stop - ;; - restart) - stop - start - ;; - *) - echo "aidsballs" - ;; -esac diff --git a/streams/radiotux b/streams/radiotux new file mode 120000 index 00000000..b0148d72 --- /dev/null +++ b/streams/radiotux @@ -0,0 +1 @@ +stream-starter \ No newline at end of file -- cgit v1.2.3