Commit 57960077 authored by Dan Reading's avatar Dan Reading
Browse files

try and supress the error from hdparm

parent cc4c965f
......@@ -472,7 +472,7 @@ getserial() {
#don't have smartctl, maybe we can use hdparm
hdp=$(which hdparm)
if [ "${hdp/hdparm}" != "${hdp}" ] ; then
res=$(hdparm -I $1 | grep -i 'Serial number:')
res=$(hdparm -I $1 2>/dev/null | grep -i 'Serial number:')
fi
else
res=$($smtcl -a $1 | grep -i 'Serial number:')
......
Supports Markdown
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