mirror of
https://github.com/Spearfoot/disk-burnin-and-testing.git
synced 2026-11-20 06:56:19 -05:00
Bew more lenient when reading serial-numbers
This is done to allow the log file to be generated uniqely even if the info is a bit hard to get.
This commit is contained in:
parent
70787741bd
commit
dd74d421ce
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ if [ -z "$Disk_Model" ]; then
|
|||
Disk_Model=$(smartctl -i /dev/"$Drive" | grep "Model Family" | awk '{print $3, $4, $5}' | sed -e 's/^[ \t]*//;s/[ \t]*$//' | sed -e 's/ /_/')
|
||||
fi
|
||||
|
||||
Serial_Number=$(smartctl -i /dev/"$Drive" | grep "Serial Number" | awk '{print $3}' | sed -e 's/ /_/')
|
||||
Serial_Number=$(smartctl -i /dev/"$Drive" | grep --ignore-case "Serial Number" | awk '{print $3}' | sed -e 's/ /_/')
|
||||
|
||||
# Form the log and bad blocks data filenames:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue