Fix QS default detection issue

This commit is contained in:
Taylor Helsper 2020-02-26 18:27:42 -06:00
parent 5435e8a8ab
commit a951698224

View File

@ -181,8 +181,10 @@ if [ ! -f /mnt/hdd/mynode/settings/.setquicksyncdefault ]; then
touch /mnt/hdd/mynode/settings/quicksync_disabled
fi
# If there is a USB->SATA adapter, assume we have an SSD and default to no QS
set +e
lsusb | grep "SATA 6Gb/s bridge"
RC=$?
set -e
if [ "$RC" = "0" ]; then
touch /mnt/hdd/mynode/settings/quicksync_disabled
fi