From 51b6e97cc304b0eb6a4eb5f1c52b3d1099b3f508 Mon Sep 17 00:00:00 2001 From: Ben Alman Date: Tue, 19 May 2020 22:06:33 -0400 Subject: [PATCH] Add support for DS215j with v10-j suffix (#14) --- test/get_arch.bats | 5 +++++ update-plex.sh | 1 + 2 files changed, 6 insertions(+) diff --git a/test/get_arch.bats b/test/get_arch.bats index 192d96a..075a05c 100644 --- a/test/get_arch.bats +++ b/test/get_arch.bats @@ -19,6 +19,9 @@ setup() { # release file for your NAS, please note the output of `uname -m` and the # contents of /proc/sys/kernel/syno_hw_version and compare them to the table # below. If anything is missing or incorrect, please file an issue! +# +# Related issues: +# https://github.com/cowboy/synology-update-plex/issues/11 @test "get_arch :: should return the correct arch for the x18 series" { run get_arch armv7 RS3618xs; [[ "$output" == "armv7hf_neon" ]] @@ -71,6 +74,7 @@ setup() { run get_arch armv7 DS216+; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS216; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS216play; [[ "$output" == "armv7hf_neon" ]] + run get_arch armv7 DS216play-j; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS216j; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS216se; [[ "$output" == "armv7hf" ]] run get_arch armv7 DS116; [[ "$output" == "armv7hf_neon" ]] @@ -92,6 +96,7 @@ setup() { run get_arch armv7 DS415play; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS215+; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS215j; [[ "$output" == "armv7hf_neon" ]] + run get_arch armv7 DS215jv10-j; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS115; [[ "$output" == "armv7hf_neon" ]] run get_arch armv7 DS115j; [[ "$output" == "armv7hf" ]] } diff --git a/update-plex.sh b/update-plex.sh index a22f850..bbef2a6 100755 --- a/update-plex.sh +++ b/update-plex.sh @@ -186,6 +186,7 @@ function get_arch() { model_machine_map[DS115j]=armv7hf model_machine_map[RS815]=armv7hf model_machine_map[DS216se]=armv7hf + model_machine_map[DS215jv10-j]=armv7hf_neon if [[ "${model_machine_map[$hw_version]+_}" ]]; then arch=${model_machine_map[$hw_version]} elif [[ "${hw_version//[^0-9]/}" =~ 1[5-8]$ ]]; then