diff --git a/postplug.d/05machine b/postplug.d/05machine index 250b9fe..ce99ed0 100644 --- a/postplug.d/05machine +++ b/postplug.d/05machine @@ -11,7 +11,7 @@ function getdmivar() { local dmivalue [ $1 ] || return 0 - dmivalue=`/usr/sbin/dmidecode -s $1 2>/dev/null | head -n1` + dmivalue=`/usr/sbin/dmidecode -s $1 2>/dev/null | grep -v "^#" | head -n1` echo $dmivalue return 0 }