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. 4
      syno_hdd_db.sh

4
syno_hdd_db.sh

@ -1574,6 +1574,7 @@ fi
# Enable nvme support # Enable nvme support
if ls /dev | grep nvme >/dev/null ; then
if [[ $m2 != "no" ]]; then if [[ $m2 != "no" ]]; then
# Check if nvme support is enabled # Check if nvme support is enabled
setting="$(get_key_value $synoinfo supportnvme)" setting="$(get_key_value $synoinfo supportnvme)"
@ -1600,9 +1601,11 @@ if [[ $m2 != "no" ]]; then
fi fi
fi fi
fi fi
fi
# Enable m2 volume support # Enable m2 volume support
if ls /dev | grep nv[em] >/dev/null ; then
if [[ $m2 != "no" ]]; then if [[ $m2 != "no" ]]; then
if [[ $m2exists == "yes" ]]; then if [[ $m2exists == "yes" ]]; then
# Check if m2 volume support is enabled # Check if m2 volume support is enabled
@ -1633,6 +1636,7 @@ if [[ $m2 != "no" ]]; then
fi fi
fi fi
fi fi
fi
# Edit synoinfo.conf to prevent drive db updates # Edit synoinfo.conf to prevent drive db updates

Loading…
Cancel
Save