mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Small drives will not attempt QuickSync
This commit is contained in:
parent
7bd76de762
commit
f30e168f58
|
@ -159,6 +159,11 @@ if [ ! -f /mnt/hdd/mynode/settings/.setquicksyncdefault ]; then
|
|||
if [ "$HDD" = "0" ]; then
|
||||
touch /mnt/hdd/mynode/settings/quicksync_disabled
|
||||
fi
|
||||
# Default small drives to no QuickSync
|
||||
DRIVE_SIZE=$(df /mnt/hdd | grep /dev | awk '{print $2}')
|
||||
if (( ${DRIVE_SIZE} <= 800000000 ));
|
||||
touch /mnt/hdd/mynode/settings/quicksync_disabled
|
||||
fi
|
||||
touch /mnt/hdd/mynode/settings/.setquicksyncdefault
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user