From a951698224623b8c9a08c3c706fab2f0f89a6fac Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 26 Feb 2020 18:27:42 -0600 Subject: [PATCH] Fix QS default detection issue --- rootfs/standard/usr/bin/mynode_startup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index 366c0468..5b41e8a9 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -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