From 1d5f70295d3fc075bd8571ec2ba07ff365c95ef4 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Mon, 20 Mar 2023 01:12:37 +1100 Subject: [PATCH] Update syno_hdd_db.sh Changed model detection to also be DSM 6 compatible. --- syno_hdd_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 1692d97..113fef8 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -187,7 +187,7 @@ fi # Get Synology model model=$(find /var/lib/disk-compatibility -regextype egrep -regex ".*host(_v7)?\.db$" |\ - rev | cut -d"/" -f1 | rev | cut -d"_" -f1) + cut -d"/" -f5 | cut -d"_" -f1 | uniq) #------------------------------------------------------------------------------