Skip to content
Snippets Groups Projects
Commit 6e137990 authored by Bob Mottram's avatar Bob Mottram
Browse files

mesh tunnel build script

parent c3a1d3cb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment