Browse Source

Update syno_hdd_db.sh

- Bug fix for "Enable write_mostly on slow internal drives so DSM runs from the fast internal drive(s)." Issue #340
pull/341/head
Dave Russell 1 year ago
committed by GitHub
parent
commit
8f6488e3bf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      syno_hdd_db.sh

5
syno_hdd_db.sh

@ -1785,13 +1785,12 @@ if [[ $ssd == "yes" ]]; then
# Get list of internal HDDs and qty of SSDs # Get list of internal HDDs and qty of SSDs
internal_ssd_qty="0" internal_ssd_qty="0"
for idrive in "${internal_drives[@]}"; do for idrive in "${internal_drives[@]}"; do
internal_drive="$(echo "$idrive" | awk '{printf $4}')" if synodisk --isssd /dev/"${idrive:?}" >/dev/null; then
if synodisk --isssd "$internal_drive" >/dev/null; then
# exit code 0 = is not SSD # exit code 0 = is not SSD
# exit code 1 = is SSD # exit code 1 = is SSD
# Add internal HDDs to array # Add internal HDDs to array
internal_hdds+=("$internal_drive") internal_hdds+=("$idrive")
else else
# Count number of internal 2.5 inch SSDs # Count number of internal 2.5 inch SSDs
internal_ssd_qty=$((internal_ssd_qty +1)) internal_ssd_qty=$((internal_ssd_qty +1))

Loading…
Cancel
Save