Skip to content

Commit

Permalink
Default to DSM 7.0.1 on ARM systems
Browse files Browse the repository at this point in the history
Default to DSM 7.0.1 on ARM systems
  • Loading branch information
kroese committed May 25, 2023
2 parents 09522e1 + 33356fc commit 22326ed
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions run/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ DL="https://global.synologydownload.com/download/DSM"

if [ -z "$URL" ]; then

URL="$DL/release/7.2/64561/DSM_VirtualDSM_64561.pat"
#URL="$DL/release/7.1.1/42962-1/DSM_VirtualDSM_42962.pat"
#URL="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
if [ "$ARCH" == "amd64" ]; then
URL="$DL/release/7.2/64561/DSM_VirtualDSM_64561.pat"
else
URL="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
fi

fi

Expand Down Expand Up @@ -98,10 +100,10 @@ if [ -f "${RDC}" ]; then
mv /run/extract/scemd /run/extract/syno_extract_system_patch
chmod +x /run/extract/syno_extract_system_patch

rm -rf "$TMP" && mkdir -p "$TMP"

fi

rm -rf "$TMP" && mkdir -p "$TMP"

info "Install: Downloading $(basename "$URL")..."

PAT="/$BASE.pat"
Expand Down Expand Up @@ -136,6 +138,7 @@ else
apt-get -qq --no-install-recommends -y install qemu-user > /dev/null

export DEBIAN_FRONTEND=""
export DEBCONF_NOWARNINGS=""

fi

Expand All @@ -147,9 +150,10 @@ else
{ qemu-x86_64 /run/extract/syno_extract_system_patch "$PAT" "$TMP/."; rc=$?; } || :
fi

(( rc != 0 )) && error "Failed to extract PAT file, reason $rc" && exit 63
export LD_LIBRARY_PATH=""

(( rc != 0 )) && error "Failed to extract PAT file, reason $rc" && exit 63

fi

HDA="$TMP/hda1"
Expand Down

0 comments on commit 22326ed

Please sign in to comment.