Skip to content

Commit

Permalink
Merge pull request #134 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad authored Mar 20, 2024
2 parents 08348a5 + 11e7a16 commit a6c21b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions syno_create_m2_volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a6c21b1

Please sign in to comment.