瀏覽代碼

mesh tunnel build script

Bob Mottram 7 年之前
父節點
當前提交
6e1379904a
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      src/freedombone-app-batman

+ 6
- 2
src/freedombone-app-batman 查看文件

@@ -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