From 0a60296a2960739de2d2422be6198b6d8c227e43 Mon Sep 17 00:00:00 2001 From: Forza Date: Sun, 8 Dec 2024 21:38:54 +0100 Subject: [PATCH] Update scterc.sh --- scterc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scterc.sh b/scterc.sh index 435958b..bd53166 100644 --- a/scterc.sh +++ b/scterc.sh @@ -23,13 +23,13 @@ for i in /dev/sd[a-z] ; do # Attempt to set the SCTERC timeout to 7 seconds output=$(smartctl -l scterc,$sct,$sct "$i" 2>&1) - + # Check the output for "SCT Commands not supported" if echo "$output" | grep -q "SCT Commands not supported" ; then echo $fallback > "/sys/block/${device}/device/timeout" - printf "%s is bad " "$i" + printf "%s: no SCTERC support, using fallback. " "$i" else - printf "%s is good " "$i" + printf "%s: SCTERC set ok. " "$i" fi # Show device identification