Browse Source
Merge pull request #187 from 007revad/develop
Develop
pull/205/head
v3.3.72
Dave Russell
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
2 deletions
-
CHANGES.txt
-
syno_hdd_db.sh
|
|
@ -1,3 +1,6 @@ |
|
|
|
|
|
v3.3.72 |
|
|
|
|
|
- Bug fix for checking if script located on NVMe drive. |
|
|
|
|
|
|
|
|
v3.3.71 |
|
|
v3.3.71 |
|
|
- Bug fix for enabling creating storage pools in Storage Manager for M.2 drives in PCIe adaptor cards. |
|
|
- Bug fix for enabling creating storage pools in Storage Manager for M.2 drives in PCIe adaptor cards. |
|
|
- Bug fix for not copying syno_hdd_db_vendors.txt to script location when script updates itself. |
|
|
- Bug fix for not copying syno_hdd_db_vendors.txt to script location when script updates itself. |
|
|
|
|
|
@ -27,7 +27,7 @@ |
|
|
# Now warns if script is located on an M.2 volume. |
|
|
# Now warns if script is located on an M.2 volume. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scriptver="v3.3.71" |
|
|
scriptver="v3.3.72" |
|
|
script=Synology_HDD_db |
|
|
script=Synology_HDD_db |
|
|
repo="007revad/Synology_HDD_db" |
|
|
repo="007revad/Synology_HDD_db" |
|
|
|
|
|
|
|
|
@ -295,7 +295,7 @@ echo "Running from: ${scriptpath}/$scriptfile" |
|
|
|
|
|
|
|
|
# Warn if script located on M.2 drive |
|
|
# Warn if script located on M.2 drive |
|
|
scriptvol=$(echo "$scriptpath" | cut -d"/" -f2) |
|
|
scriptvol=$(echo "$scriptpath" | cut -d"/" -f2) |
|
|
vg=$(lvdisplay | grep /volume_"${volume#volume}" | cut -d"/" -f3) |
|
|
vg=$(lvdisplay | grep /volume_"${scriptvol#volume}" | cut -d"/" -f3) |
|
|
md=$(pvdisplay | grep -B 1 "$vg" | grep /dev/ | cut -d"/" -f3) |
|
|
md=$(pvdisplay | grep -B 1 "$vg" | grep /dev/ | cut -d"/" -f3) |
|
|
if cat /proc/mdstat | grep "$md" | grep nvme >/dev/null; then |
|
|
if cat /proc/mdstat | grep "$md" | grep nvme >/dev/null; then |
|
|
echo "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!" |
|
|
echo "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!" |
|
|
|