#!/bin/bash -e on_chroot << EOF mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" cd "/home/${FIRST_USER_NAME}/PiSDR/Software" if [ ! -d "volk" ]; then git clone --single-branch --branch v2.5.0 --depth 1 --recurse-submodules --shallow-submodules https://github.com/gnuradio/volk.git fi cd volk mkdir -p build cd build cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. ninja install ldconfig cd .. rm -fr build EOF