Pārlūkot izejas kodu

Run ipfs daemon on mesh client

Bob Mottram 10 gadus atpakaļ
vecāks
revīzija
35db1c66ff
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5
    0
      src/freedombone-meshweb

+ 5
- 0
src/freedombone-meshweb Parādīt failu

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