瀏覽代碼

Run ipfs daemon on mesh client

Bob Mottram 9 年之前
父節點
當前提交
35db1c66ff
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/freedombone-meshweb

+ 5
- 0
src/freedombone-meshweb 查看文件

@@ -358,6 +358,11 @@ if [ $existing_bttrack -lt "2" ]; then
358 358
     bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 &
359 359
 fi
360 360
 
361
+existing_ipfs=$(ps aux | grep ipfs | wc -l)
362
+if [ $existing_ipfs -lt "2" ]; then
363
+    ipfs daemon --mount
364
+fi
365
+
361 366
 ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
362 367
 
363 368
 cp /etc/crontab /tmp/crontab