From 957f3ca5356c6a0d75803c1c131758b383193f14 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jun 2011 20:50:29 +0200 Subject: fixed run-scripts for streams --- streams/deepmix | 5 ++--- streams/groove | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'streams') diff --git a/streams/deepmix b/streams/deepmix index 89a1ce8e..b8f8fba8 100755 --- a/streams/deepmix +++ b/streams/deepmix @@ -3,9 +3,8 @@ set -euf CMD="mplayer http://deepmix.ru/deepmix128.pls" function start() { stop - tmux list-sessions && - tmux new-window "$CMD" || - tmux new-session "$CMD" || + tmux start-server + tmux new-session -d "$CMD" } function stop() { pkill mplayer || : diff --git a/streams/groove b/streams/groove index f3e3719a..935a16d9 100755 --- a/streams/groove +++ b/streams/groove @@ -1,11 +1,10 @@ #! /bin/bash set -euf -CMD="mplayer http://somafm.com/groovesalad.pls" +CMD="exec mplayer http://somafm.com/groovesalad.pls" function start() { stop - tmux list-sessions && - tmux new-window "$CMD" || - tmux new-session "$CMD" || + tmux start-server + tmux new-session -d "$CMD" } function stop() { -- cgit v1.2.3