From 362cdcd53405d9df6e32fbea07b38cfcf5ddaf97 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:26:03 +1000 Subject: [PATCH] Update syno_hdd_db.sh - Now allows creating M.2 storage pool and volume all from Storage Manager --- syno_hdd_db.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 091cdce..69f1ac5 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -30,6 +30,8 @@ # It's also parsed and checked and probably in some cases it could be more critical to patch that one instead. # DONE +# Now allows creating M.2 storage pool and volume all from Storage Manager +# # Now always shows your drive entries in the host db file if -s or --showedits used, # instead of only db file was edited during that run. # @@ -111,7 +113,7 @@ # Optionally disable "support_disk_compatibility". -scriptver="v1.3.34" +scriptver="v2.0.35" script=Synology_HDD_db repo="007revad/Synology_HDD_db" @@ -486,6 +488,9 @@ for d in /sys/block/*; do getm2info "$d" "nvme" # Get M.2 card model if in M.2 card getcardmodel "/dev/$(basename -- "${d}")" + + # Enable creating M.2 storage pool and volume in Storage Manager + echo 1 > /run/synostorage/disks/$(basename -- "$d")/m2_pool_support fi fi ;; @@ -496,6 +501,9 @@ for d in /sys/block/*; do getm2info "$d" "nvc" # Get M.2 card model if in M.2 card getcardmodel "/dev/$(basename -- "${d}")" + + # Enable creating M.2 storage pool and volume in Storage Manager + echo 1 > /run/synostorage/disks/$(basename -- "$d")/m2_pool_support fi fi ;;