Browse Source

Update syno_hdd_db.sh

pull/164/head
Dave Russell 2 years ago
committed by GitHub
parent
commit
8c82cb3e90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      syno_hdd_db.sh

3
syno_hdd_db.sh

@ -726,7 +726,8 @@ fi
# Get list of installed SATA, SAS and M.2 NVMe/SATA drives, # Get list of installed SATA, SAS and M.2 NVMe/SATA drives,
# PCIe M.2 cards and connected Expansion Units. # PCIe M.2 cards and connected Expansion Units.
fixdrivemodel(){ fixdrivemodel()
{
# Remove " 00Y" from end of Samsung/Lenovo SSDs # Github issue #13 # Remove " 00Y" from end of Samsung/Lenovo SSDs # Github issue #13
if [[ $1 =~ MZ.*" 00Y" ]]; then if [[ $1 =~ MZ.*" 00Y" ]]; then
hdmodel=$(printf "%s" "$1" | sed 's/ 00Y.*//') hdmodel=$(printf "%s" "$1" | sed 's/ 00Y.*//')

Loading…
Cancel
Save