From 306571a8f355a42117a13d84de2fc7a6be594e1d Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:29:36 +1100 Subject: [PATCH 1/2] Update CHANGES.txt --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 6be46b3..b0a832f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v1.3.25 +- Bug fix for when there's more than 9 md block devices. Issue #133 + v1.3.24 - Bug fix for /usr/syno/bin/synopartition no such file or directory. Issue #128 From 11e7a164a696819bcf09643c7a9be143cf03a011 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:30:06 +1100 Subject: [PATCH 2/2] Update syno_create_m2_volume.sh v1.3.25 - Bug fix for when there's more than 9 md block devices. Issue #133 --- syno_create_m2_volume.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syno_create_m2_volume.sh b/syno_create_m2_volume.sh index dc17a6a..748d152 100644 --- a/syno_create_m2_volume.sh +++ b/syno_create_m2_volume.sh @@ -80,7 +80,7 @@ # Logical Volume (LV): VG's are divided into LV's and are mounted as partitions. -scriptver="v1.3.24" +scriptver="v1.3.25" script=Synology_M2_volume repo="007revad/Synology_M2_volume" scriptname=syno_create_m2_volume @@ -792,7 +792,7 @@ sleep 1 # Get highest md# mdraid device # Using "md[0-9]{1,2}" to avoid md126 and md127 etc -lastmd=$(grep -oP "md[0-9]{1,2}" "/proc/mdstat" | sort | tail -1) +lastmd=$(grep -oP "md[0-9]{1,2}" "/proc/mdstat" | sort -n -k1.3 | tail -1) nextmd=$((${lastmd:2} +1)) if [[ -z $nextmd ]]; then ding