scan-dmidecode working
This commit is contained in:
parent
c909e472d5
commit
87138fca24
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue