Browse Source

Update syno_hdd_db.sh

Bug fix to prevent enabling supportnvme and support_m2_pool on models with no M.2 slots or PCIe ports.
pull/164/head
Dave Russell 2 years ago
committed by GitHub
parent
commit
3a264a695b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      syno_hdd_db.sh

8
syno_hdd_db.sh

@ -1574,7 +1574,8 @@ fi
# Enable nvme support
if [[ $m2 != "no" ]]; then
if ls /dev | grep nvme >/dev/null ; then
if [[ $m2 != "no" ]]; then
# Check if nvme support is enabled
setting="$(get_key_value $synoinfo supportnvme)"
enabled=""
@ -1599,11 +1600,13 @@ if [[ $m2 != "no" ]]; then
echo -e "\n${Error}ERROR${Off} Failed to enable NVMe support!"
fi
fi
fi
fi
# Enable m2 volume support
if [[ $m2 != "no" ]]; then
if ls /dev | grep nv[em] >/dev/null ; then
if [[ $m2 != "no" ]]; then
if [[ $m2exists == "yes" ]]; then
# Check if m2 volume support is enabled
smp=support_m2_pool
@ -1632,6 +1635,7 @@ if [[ $m2 != "no" ]]; then
fi
fi
fi
fi
fi

Loading…
Cancel
Save