Skip to content

Commit

Permalink
Merge pull request #304 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad committed Jun 13, 2024
2 parents 99ee712 + c43662d commit ebaf7ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v3.5.91
- Changed to not exit if no SATA or SAS drives found. Issue #303
- Now only exists if no SATA, SAS or NVMe drives found.

v3.5.90
- Changed to enable creating storage pools/volumes on NVMe drives in a PCIe M.2 adaptor in DSM 7.2
- Previously only supported DSM 7.2.1
Expand Down
16 changes: 11 additions & 5 deletions syno_hdd_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# /var/packages/StorageManager/target/ui/storage_panel.js


scriptver="v3.5.90"
scriptver="v3.5.91"
script=Synology_HDD_db
repo="007revad/Synology_HDD_db"
scriptname=syno_hdd_db
Expand Down Expand Up @@ -948,10 +948,9 @@ if [[ ${#hdlist[@]} -gt "0" ]]; then
done < <(printf "%s\0" "${hdlist[@]}" | sort -uz)
fi

# Check hdds array isn't empty
# Show hdd if hdds array isn't empty
if [[ ${#hdds[@]} -eq "0" ]]; then
ding
echo -e "\n${Error}ERROR${Off} No drives found!" && exit 2
echo -e "No SATA or SAS drives found\n"
else
echo -e "\nHDD/SSD models found: ${#hdds[@]}"
num="0"
Expand All @@ -970,7 +969,7 @@ if [[ ${#nvmelist[@]} -gt "0" ]]; then
done < <(printf "%s\0" "${nvmelist[@]}" | sort -uz)
fi

# Check nvmes array isn't empty
# Show nvmes if nvmes array isn't empty
if [[ $m2 != "no" ]]; then
if [[ ${#nvmes[@]} -eq "0" ]]; then
echo -e "No M.2 drives found\n"
Expand All @@ -987,6 +986,13 @@ if [[ $m2 != "no" ]]; then
fi


# Exit if no drives found
if [[ ${#hdds[@]} -eq "0" ]] && [[ ${#nvmes[@]} -eq "0" ]]; then
ding
echo -e "\n${Error}ERROR${Off} No drives found!" && exit 2
fi


# M.2 card db files
# Sort m2carddblist array into new m2carddbs array to remove duplicates
if [[ ${#m2carddblist[@]} -gt "0" ]]; then
Expand Down

0 comments on commit ebaf7ad

Please sign in to comment.