Skip to content

Commit

Permalink
Add support for DS215j with v10-j suffix (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy authored May 20, 2020
1 parent 57910b1 commit 51b6e97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/get_arch.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
Expand Down Expand Up @@ -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" ]]
Expand All @@ -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" ]]
}
Expand Down
1 change: 1 addition & 0 deletions update-plex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51b6e97

Please sign in to comment.