mirror of
https://github.com/Spearfoot/disk-burnin-and-testing.git
synced 2025-12-23 19:53:26 +00: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:
@@ -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/ /_/')
|
Disk_Model=$(smartctl -i /dev/"$Drive" | grep "Model Family" | awk '{print $3, $4, $5}' | sed -e 's/^[ \t]*//;s/[ \t]*$//' | sed -e 's/ /_/')
|
||||||
fi
|
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:
|
# Form the log and bad blocks data filenames:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user