diff --git a/check_smartstatus b/check_smartstatus index 5457a2a71f5776288fc2eb07caa5dd6220bb718f..086b185f787d3cf6df878c33c5ffa66b7ae6e64c 100755 --- a/check_smartstatus +++ b/check_smartstatus @@ -27,6 +27,7 @@ # 2020-02-27 v0.5 ah,ds add /sbin to PATH variable # 2020-03-05 v1.0 <axel.hahn@iml.unibe.ch> switch to ph.* helper functions # 2021-01-22 v1.1 <axel.hahn@iml.unibe.ch> add status [no access] +# 2021-04-07 v1.2 <axel.hahn@iml.unibe.ch> update message if sudo smartctl -H fails # ====================================================================== @@ -117,7 +118,7 @@ do if [ $iFound -eq 1 ]; then sudo smartctl -H $mydevice >/dev/null 2>&1 if [ $? -ne 0 ]; then - ph.abort "SKIP: smartctl was found - but no sudo permissions." + ph.abort "SKIP: smartctl was found - but did not respond results. Maybe no sudo permissions or additional parameters required. $( udo smartctl -H $mydevice )" fi fi