Small drives will not attempt QuickSync

This commit is contained in:
Taylor Helsper 2020-01-21 22:58:28 -06:00
parent f30e168f58
commit 1c8b561663

View File

@ -161,7 +161,7 @@ if [ ! -f /mnt/hdd/mynode/settings/.setquicksyncdefault ]; then
fi
# Default small drives to no QuickSync
DRIVE_SIZE=$(df /mnt/hdd | grep /dev | awk '{print $2}')
if (( ${DRIVE_SIZE} <= 800000000 ));
if (( ${DRIVE_SIZE} <= 800000000 )); then
touch /mnt/hdd/mynode/settings/quicksync_disabled
fi
touch /mnt/hdd/mynode/settings/.setquicksyncdefault