mesh tunnel build script

This commit is contained in:
Bob Mottram 2017-09-29 10:24:50 +01:00
parent c3a1d3cb45
commit 6e1379904a
1 changed files with 6 additions and 2 deletions

View File

@ -147,12 +147,16 @@ function install_mesh_tunnel {
echo $'Unable to clone tunneldigger repo' echo $'Unable to clone tunneldigger repo'
exit 1987453 exit 1987453
fi fi
cd $rootdir/opt/tunneldigger/client echo '#!/bin/bash' > $rootdir/opt/tunneldigger/buildtunnel.sh
chroot "$rootdir" make 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 if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then
echo $'tunneldigger failed to build client' echo $'tunneldigger failed to build client'
exit 823563 exit 823563
fi fi
rm $rootdir/opt/tunneldigger/buildtunnel.sh
cd $rootdir/opt/tunneldigger/broker cd $rootdir/opt/tunneldigger/broker
chroot "$rootdir" pip install -r requirements.txt chroot "$rootdir" pip install -r requirements.txt
echo 'l2tp_core' >> $rootdir/etc/modules echo 'l2tp_core' >> $rootdir/etc/modules