Updated hardware output to work better with NVMe drives
Kyle Sheumaker [Fri, 6 Oct 2017 20:26:57 +0000 (15:26 -0500)]
etc/hardware_output.sh

index 0fb1d60..7c9388f 100755 (executable)
@@ -68,7 +68,7 @@ disk_list() {
 nvme_serialno() {
        dev=$1
 
-       sn=`nvme id-ctrl /dev/${dev} | grep sn | cut -d":" -f2`
+       sn=`nvme id-ctrl /dev/${dev} | grep sn | awk '{print $3}'
        echo $sn
 }