Commit 9711fe95 authored by Mike Hibler's avatar Mike Hibler

Fix smartctl check for FreeBSD.

parent 6bc5c3fb
......@@ -584,9 +584,9 @@ findSmartctl_getopt() {
fi
fi
# if found check functionally
if [ -n "${findit}" ] ; then
x=$(/usr/sbin/smartctl --get | grep REQUIRED)
[[ -z "$x" ]] && findit=$NOSM
if [ "${findit}" != "$NOSM" ] ; then
x=$(${findit} --get | grep REQUIRED)
[[ -z "$x" ]] && findit=$NOSM
fi
echo $findit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment