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