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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
48 additions and
44 deletions
-
syno_hdd_db.sh
|
|
@ -1574,7 +1574,8 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Enable nvme support |
|
|
# 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 |
|
|
# Check if nvme support is enabled |
|
|
setting="$(get_key_value $synoinfo supportnvme)" |
|
|
setting="$(get_key_value $synoinfo supportnvme)" |
|
|
enabled="" |
|
|
enabled="" |
|
|
@ -1599,11 +1600,13 @@ if [[ $m2 != "no" ]]; then |
|
|
echo -e "\n${Error}ERROR${Off} Failed to enable NVMe support!" |
|
|
echo -e "\n${Error}ERROR${Off} Failed to enable NVMe support!" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Enable m2 volume support |
|
|
# 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 |
|
|
if [[ $m2exists == "yes" ]]; then |
|
|
# Check if m2 volume support is enabled |
|
|
# Check if m2 volume support is enabled |
|
|
smp=support_m2_pool |
|
|
smp=support_m2_pool |
|
|
@ -1632,6 +1635,7 @@ if [[ $m2 != "no" ]]; then |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|