diff --git a/crowdbunker.sh b/crowdbunker.sh index 8e221d0..46b38d9 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -33,7 +33,7 @@ MOATS=$(date -u +"%Y%m%d%H%M%S%4N") YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) || echo " warning ipfs daemon not running" isLAN=$(hostname -I | awk '{print $1}' | head -n 1 | cut -f3 -d '/' | grep -E "(^127\.)|(^192\.168\.)|(^fd42\:)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/") -IPFSNODEID=$(ipfs id --timeout=1s | jq -r .ID) +IPFSNODEID=$(ipfs id --timeout=12s | jq -r .ID) howmany=$(cat /tmp/ipfsbunk.timeout) if [[ ! $IPFSNODEID ]]; then ## wait a howmany timeout before restarting ipfs