From 87138fca24aba8c8e9a83e338205a1f57ab50d43 Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Mon, 12 Dec 2016 13:31:26 -0600 Subject: [PATCH] scan-dmidecode working --- scripts/scan-dmidecode | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/scan-dmidecode b/scripts/scan-dmidecode index 7a693aa..1351c3c 100755 --- a/scripts/scan-dmidecode +++ b/scripts/scan-dmidecode @@ -1,3 +1,12 @@ #!/bin/bash +MY_SERIAL=`dmidecode -s chassis-serial-number` +MY_DATETIME=`date +%Y-%m-%d_%H-%M-%S` +OUTPUT_DIR=/output/hwtests/$MY_SERIAL/$MY_DATETIME +export OUTPUT_DIR +mkdir -vp $OUTPUT_DIR + +if [ ! -f $OUTPUT_DIR/dmidecode ] ; then + dmidecode > $OUTPUT_DIR/dmidecode +fi