Skip to content
Snippets Groups Projects
Commit 3f52b611 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

check_smartstatus - update message if sudo smartctl -H fails

parent 3434a495
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment