From 39acf5aa1f973ca120479c4830f52a38f8c908e8 Mon Sep 17 00:00:00 2001 From: "ODR on core.mpb.li" Date: Sun, 24 Aug 2014 10:52:06 +0200 Subject: Correct configuration handling --- launch-all-encoders.sh | 5 ++++- radio.sh | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/launch-all-encoders.sh b/launch-all-encoders.sh index 1f7e56d..ec365cf 100755 --- a/launch-all-encoders.sh +++ b/launch-all-encoders.sh @@ -1,6 +1,8 @@ #!/bin/bash # launch each encoder in its own screen window +set -e + if [ -f site/configuration.sh ] then @@ -8,7 +10,8 @@ then for radio in ${all_radios[*]} do - screen -t $radio ./radio $radio + echo "Launching $radio encoder" + screen -t $radio ./radio.sh $radio sleep 0.4 done diff --git a/radio.sh b/radio.sh index d475ce4..b39eb39 100755 --- a/radio.sh +++ b/radio.sh @@ -2,8 +2,7 @@ # # Start the encoder for the radio -# Declare radios to be an associative array -declare -A radios +set -e source site/configuration.sh -- cgit v1.2.3