From 3ccd9c01824d1dc1f34e39eedfddaa8fafac75c1 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Thu, 12 Nov 2020 03:44:17 -0300 Subject: [PATCH] add vaportrail support --- builder/stage4/30-pisdr-vaportrail/00-run.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 builder/stage4/30-pisdr-vaportrail/00-run.sh diff --git a/builder/stage4/30-pisdr-vaportrail/00-run.sh b/builder/stage4/30-pisdr-vaportrail/00-run.sh new file mode 100755 index 0000000..d6c0bee --- /dev/null +++ b/builder/stage4/30-pisdr-vaportrail/00-run.sh @@ -0,0 +1,16 @@ +#!/bin/bash -e + +on_chroot << EOF +mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" +cd "/home/${FIRST_USER_NAME}/PiSDR/Software" + +if [ ! -d "vaportrail" ]; then + mkdir -p vaportrail +fi + +cd vaportrail +wget https://github.com/inguardians/VaporTrail/releases/download/0.1.0/vaportrail-rpi2-and-rpi3.tar.gz +tar -xvzf vaportrail-rpi2-and-rpi3.tar.gz +cp vaportrail /usr/bin/ +rm *.tar.gz +EOF \ No newline at end of file