|  | 
 |  | 
 | 
												
													
														| 147 |          echo $'Unable to clone tunneldigger repo'
 | 147 |          echo $'Unable to clone tunneldigger repo'
 | 
												
													
														| 148 |          exit 1987453
 | 148 |          exit 1987453
 | 
												
													
														| 149 |      fi
 | 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 |      if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then
 | 155 |      if [ ! -f $rootdir/opt/tunneldigger/client/l2tp_client ]; then
 | 
												
													
														| 153 |          echo $'tunneldigger failed to build client'
 | 156 |          echo $'tunneldigger failed to build client'
 | 
												
													
														| 154 |          exit 823563
 | 157 |          exit 823563
 | 
												
													
														| 155 |      fi
 | 158 |      fi
 | 
												
													
														|  | 
 | 159 | +    rm $rootdir/opt/tunneldigger/buildtunnel.sh
 | 
												
													
														| 156 |      cd $rootdir/opt/tunneldigger/broker
 | 160 |      cd $rootdir/opt/tunneldigger/broker
 | 
												
													
														| 157 |      chroot "$rootdir" pip install -r requirements.txt
 | 161 |      chroot "$rootdir" pip install -r requirements.txt
 | 
												
													
														| 158 |      echo 'l2tp_core' >> $rootdir/etc/modules
 | 162 |      echo 'l2tp_core' >> $rootdir/etc/modules
 |