aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-11 18:16:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-11 18:16:11 +0100
commit2d08911428d7c4f3c97cb416825d8354f1e39982 (patch)
tree3da2a59cc078ac0591218a291e03ec23a0d41975
parentab7d24f360dbe88fc30cc1274badce068241a84c (diff)
downloadmmbtools-aux-2d08911428d7c4f3c97cb416825d8354f1e39982.tar.gz
mmbtools-aux-2d08911428d7c4f3c97cb416825d8354f1e39982.tar.bz2
mmbtools-aux-2d08911428d7c4f3c97cb416825d8354f1e39982.zip
installer script checks existence of dab folder
-rw-r--r--examplemod.ini3
-rw-r--r--installer/debian.sh12
2 files changed, 14 insertions, 1 deletions
diff --git a/examplemod.ini b/examplemod.ini
index 080dcaa..66ee92c 100644
--- a/examplemod.ini
+++ b/examplemod.ini
@@ -43,7 +43,8 @@ filename=/dev/null
[uhdoutput]
device=master_clock_rate=32768000,type=b100
-frequency=234208000
+;frequency=234208000
+channel=13C
txgain=2
; possible values : internal, external, MIMO
diff --git a/installer/debian.sh b/installer/debian.sh
index ef56107..476af99 100644
--- a/installer/debian.sh
+++ b/installer/debian.sh
@@ -61,6 +61,18 @@ fi
# Fail on error
set -e
+if [ -d dab ]
+then
+ echo -e $RED
+ echo "ERROR: The dab directory already exists."
+ echo -e $NORMAL
+ echo "This script assumes a fresh initialisation,"
+ echo "if you have already run it and wish to update"
+ echo "the existing installation, please do it manually"
+ echo "or erase the dab folder first."
+ exit 1
+fi
+
echo -e "$GREEN Updating debian package repositories $NORMAL"
sudo apt-get -y update