|  | @@ -147,12 +147,16 @@ function install_mesh_tunnel {
 | 
	
		
			
			| 147 | 147 |          echo $'Unable to clone tunneldigger repo'
 | 
	
		
			
			| 148 | 148 |          exit 1987453
 | 
	
		
			
			| 149 | 149 |      fi
 | 
	
		
			
			| 150 |  | -    cd $rootdir/opt/tunneldigger/client
 | 
	
		
			
			| 151 |  | -    chroot "$rootdir" make
 | 
	
		
			
			|  | 150 | +    echo '#!/bin/bash' > $rootdir/opt/tunneldigger/buildtunnel.sh
 | 
	
		
			
			|  | 151 | +    echo 'cd /opt/tunneldigger/client' >> $rootdir/opt/tunneldigger/buildtunnel.sh
 | 
	
		
			
			|  | 152 | +    echo 'make' >> $rootdir/opt/tunneldigger/buildtunnel.sh
 | 
	
		
			
			|  | 153 | +    chmod +x $rootdir/opt/tunneldigger/buildtunnel.sh
 | 
	
		
			
			|  | 154 | +    chroot "$rootdir" /opt/tunneldigger/buildtunnel.sh
 | 
	
		
			
			| 152 | 155 |      if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then
 | 
	
		
			
			| 153 | 156 |          echo $'tunneldigger failed to build client'
 | 
	
		
			
			| 154 | 157 |          exit 823563
 | 
	
		
			
			| 155 | 158 |      fi
 | 
	
		
			
			|  | 159 | +    rm $rootdir/opt/tunneldigger/buildtunnel.sh
 | 
	
		
			
			| 156 | 160 |      cd $rootdir/opt/tunneldigger/broker
 | 
	
		
			
			| 157 | 161 |      chroot "$rootdir" pip install -r requirements.txt
 | 
	
		
			
			| 158 | 162 |      echo 'l2tp_core' >> $rootdir/etc/modules
 |