From 6da954447d71b193326164dd99df80d52d729bd5 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 11 Jun 2023 10:42:56 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EBuild/synOTR.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build/synOTR.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Build/synOTR.sh b/Build/synOTR.sh index 43d1b76..835e244 100644 --- a/Build/synOTR.sh +++ b/Build/synOTR.sh @@ -660,7 +660,12 @@ if [ $decoderactiv = "on" ] && [ ! -z "$filetest" ] ; then echo -n " "; date if [ $machinetyp = "x86_64" ]; then - otrdecoderLOG=$(otrdecoder64 -q -i "$i" -o "$DECODIR" -e "$OTRuser" -p "$OTRpw" 2>&1) + if [ "$(synogetkeyvalue /etc.defaults/VERSION buildnumber)" -ge 60000 ]; then + # verwende passenden Decoder ab DSM7.2: + otrdecoderLOG=$(otrdecoder64_72 -q -i "$i" -o "$DECODIR" -e "$OTRuser" -p "$OTRpw" 2>&1) + else + otrdecoderLOG=$(otrdecoder64 -q -i "$i" -o "$DECODIR" -e "$OTRuser" -p "$OTRpw" 2>&1) + fi elif [ $machinetyp = "i686" ]; then otrdecoderLOG=$(otrdecoder32 -q -i "$i" -o "$DECODIR" -e "$OTRuser" -p "$OTRpw" 2>&1) elif [ `echo $machinetyp | grep "armv" ` ] ; then