From 6e1379904a4625a3c13da7538a5b2f739e24114a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Sep 2017 10:24:50 +0100 Subject: [PATCH] mesh tunnel build script --- src/freedombone-app-batman | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-batman b/src/freedombone-app-batman index a8f4e82c..4f489861 100755 --- a/src/freedombone-app-batman +++ b/src/freedombone-app-batman @@ -147,12 +147,16 @@ function install_mesh_tunnel { echo $'Unable to clone tunneldigger repo' exit 1987453 fi - cd $rootdir/opt/tunneldigger/client - chroot "$rootdir" make + echo '#!/bin/bash' > $rootdir/opt/tunneldigger/buildtunnel.sh + echo 'cd /opt/tunneldigger/client' >> $rootdir/opt/tunneldigger/buildtunnel.sh + echo 'make' >> $rootdir/opt/tunneldigger/buildtunnel.sh + chmod +x $rootdir/opt/tunneldigger/buildtunnel.sh + chroot "$rootdir" /opt/tunneldigger/buildtunnel.sh if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then echo $'tunneldigger failed to build client' exit 823563 fi + rm $rootdir/opt/tunneldigger/buildtunnel.sh cd $rootdir/opt/tunneldigger/broker chroot "$rootdir" pip install -r requirements.txt echo 'l2tp_core' >> $rootdir/etc/modules