From 5579854b1fc1996062626ed4c6bb1384ce95e94b Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:21:10 +1100 Subject: [PATCH] Update syno_hdd_db.sh --- syno_hdd_db.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index b92e933..f374ae1 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -36,6 +36,12 @@ if [[ ${1,,} == "-s" ]] || [[ ${1,,} == "-showedits" ]]; then showedits=yes; fi model=$(cat /proc/sys/kernel/syno_hw_version) model=${model,,} # convert to lower case +# Check for -j after model - GitHub issue #2 +if [[ $model =~ '-j'$ ]]; then + model=${model%??} # remove last to chars +fi + +# Get DSM major version dsm=$(get_key_value /etc.defaults/VERSION majorversion) if [[ $dsm -gt "6" ]]; then version="_v$dsm"