aboutsummaryrefslogtreecommitdiffstats
path: root/mot.sh
diff options
context:
space:
mode:
authorYoann QUERET <yoann@queret.net>2016-02-09 16:29:25 +0100
committerYoann QUERET <yoann@queret.net>2016-02-09 16:29:25 +0100
commita153cb1e281357300ae43454cba593b9cf0c3bde (patch)
tree4430d0a1019e0f6cbe0e7935f3faaf613ffe343b /mot.sh
parentbcd51f68047854efc73f53463e0091bae14b7ad9 (diff)
downloaddab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.tar.gz
dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.tar.bz2
dab-scripts-a153cb1e281357300ae43454cba593b9cf0c3bde.zip
Bye bye old script, welcome supervisor
Diffstat (limited to 'mot.sh')
-rw-r--r--mot.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/mot.sh b/mot.sh
deleted file mode 100644
index baa6a76..0000000
--- a/mot.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-#
-# Start the mot-encoder for the radio
-
-set -e
-
-source site/configuration.sh
-
-printerr() {
- echo -e "\033[01;31m$1\033[0m"
-}
-
-printmsg() {
- echo -e "\033[01;32m$1\033[0m"
-}
-
-script_pid=0
-sigint_trap() {
- printerr "Got Ctrl-C, killing radio encoder script"
- if [[ "$script_pid" != "0" ]] ; then
- kill $script_pid
- script_pid=0
- wait
- fi
-}
-
-set -e
-
-# check number of arguments
-if [[ "$#" -lt 1 ]] ; then
- echo "Usage $0 radio-id"
- echo "You must specify which radio to start"
- exit 1
-fi
-
-RADIO=$1
-
-if [ "${mot[$RADIO]+_}" ] ; then
- COMMAND=${mot[$RADIO]}
-
- trap sigint_trap SIGINT
-
- # execute script
- $COMMAND &
- script_pid=$!
- wait
-else
- echo "Radio $RADIO not defined in configuration"
- exit 1
-fi
-