Browse Source

Run ipfs daemon on mesh client

Bob Mottram 9 years ago
parent
commit
35db1c66ff
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-meshweb

+ 5
- 0
src/freedombone-meshweb View File

358
     bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 &
358
     bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 &
359
 fi
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
 ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
366
 ZERONET_INDEX=/home/$MY_USERNAME/mesh.html
362
 
367
 
363
 cp /etc/crontab /tmp/crontab
368
 cp /etc/crontab /tmp/crontab