diff --git a/configuration/setup-raspberry-pi.sh b/configuration/setup-raspberry-pi.sh index 85e71f6..d9c0867 100644 --- a/configuration/setup-raspberry-pi.sh +++ b/configuration/setup-raspberry-pi.sh @@ -27,7 +27,7 @@ echo echo "### Install some developer tools" echo -sudo apt-get update && sudo apt-get install -y build-essential +sudo apt-get update && sudo apt-get install -y build-essential python3-pip # Setup audio echo diff --git a/scripts/export-config-values.sh b/scripts/export-config-values.sh index 8b397a8..9b7b58a 100644 --- a/scripts/export-config-values.sh +++ b/scripts/export-config-values.sh @@ -1,5 +1,5 @@ #!/bin/bash -CONFIG_FILE=$1 +CONFIG_FILE=/boot/hydrophonitor/configuration/hydrophonitor-config.txt export $(grep -v '^#' $CONFIG_FILE | tr -d '[:space:]' | xargs -d '\n') diff --git a/scripts/setup-audio.sh b/scripts/setup-audio.sh index 7fea15c..99d41f1 100755 --- a/scripts/setup-audio.sh +++ b/scripts/setup-audio.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -ex + echo "Setting up audio recording" # Install packages diff --git a/scripts/setup-gps.sh b/scripts/setup-gps.sh index 81258d9..af7bff2 100755 --- a/scripts/setup-gps.sh +++ b/scripts/setup-gps.sh @@ -1,9 +1,10 @@ #!/bin/sh +set -ex + echo "Setting up GPS recording" -sudo apt-get update && sudo apt-get install -y \ - gpsd gpsd-clients +sudo apt-get update && sudo apt-get install -y gpsd gpsd-clients sudo pip install -r /home/pi/hydrophonitor/gps-logger/requirements.txt diff --git a/scripts/setup-pressure-depth.sh b/scripts/setup-pressure-depth.sh index eeacb8e..fb71a78 100644 --- a/scripts/setup-pressure-depth.sh +++ b/scripts/setup-pressure-depth.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -ex + echo "Setting up depth recording" # Enable i2c bus on Raspberry Pi