Tweak QS Settings
This commit is contained in:
parent
1d2398fad5
commit
88f32762f1
|
@ -44,10 +44,12 @@ while true; do
|
||||||
echo "Marked as uploader, unlimited upload, unlimited download"
|
echo "Marked as uploader, unlimited upload, unlimited download"
|
||||||
transmission-remote -U
|
transmission-remote -U
|
||||||
transmission-remote -D
|
transmission-remote -D
|
||||||
|
transmission-remote -t 1 --peers 5
|
||||||
elif [ ! -f "/mnt/hdd/mynode/quicksync/.quicksync_complete" ]; then
|
elif [ ! -f "/mnt/hdd/mynode/quicksync/.quicksync_complete" ]; then
|
||||||
echo "QuickSync not complete, limited upload, unlimited download"
|
echo "QuickSync not complete, limited upload, unlimited download"
|
||||||
transmission-remote -u $UPLOAD_RATE
|
transmission-remote -u $UPLOAD_RATE
|
||||||
transmission-remote -D
|
transmission-remote -D
|
||||||
|
transmission-remote -t 1 --peers 10
|
||||||
elif [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; then
|
elif [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; then
|
||||||
echo "Bitcoin not synced, stopping upload, stopping download"
|
echo "Bitcoin not synced, stopping upload, stopping download"
|
||||||
transmission-remote -u 0
|
transmission-remote -u 0
|
||||||
|
@ -57,9 +59,10 @@ while true; do
|
||||||
transmission-remote -u $UPLOAD_RATE
|
transmission-remote -u $UPLOAD_RATE
|
||||||
transmission-remote -d $DOWNLOAD_RATE
|
transmission-remote -d $DOWNLOAD_RATE
|
||||||
else
|
else
|
||||||
echo "Setting upload rate to unlimited"
|
echo "Setting upload rate for stable state"
|
||||||
transmission-remote -U
|
transmission-remote -u $UPLOAD_RATE
|
||||||
transmission-remote -D
|
transmission-remote -d $DOWNLOAD_RATE
|
||||||
|
transmission-remote -t 1 --peers 5
|
||||||
fi
|
fi
|
||||||
sleep 10m
|
sleep 10m
|
||||||
done
|
done
|
||||||
|
|
|
@ -68,8 +68,8 @@ fi
|
||||||
if [ ! -f $QUICKSYNC_DIR/blockchain.torrent ]; then
|
if [ ! -f $QUICKSYNC_DIR/blockchain.torrent ]; then
|
||||||
cp $QUICKSYNC_DIR/blockchain_temp.torrent $QUICKSYNC_DIR/blockchain.torrent
|
cp $QUICKSYNC_DIR/blockchain_temp.torrent $QUICKSYNC_DIR/blockchain.torrent
|
||||||
else
|
else
|
||||||
if [ $IS_RASPI3 -eq 1 ] && [ ! -f $UPLOADER_FILE ]; then
|
if [ ! -f $UPLOADER_FILE ]; then
|
||||||
# Don't help with uploads during normal operation.... too slow
|
# Don't update torrent for normal operations.... too slow
|
||||||
sleep 1s
|
sleep 1s
|
||||||
else
|
else
|
||||||
# Run commands as long as torrents are different (last command updates torrent file)
|
# Run commands as long as torrents are different (last command updates torrent file)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user