Skip to content

Commit

Permalink
Merge pull request #46 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad authored Sep 12, 2024
2 parents 753b48a + 6d5a293 commit 5000484
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v3.0.17
- Changed to also enable RX1217, RX1214 or RX1211 when RX1217rp, RX1214rp or RX1211rp selected.

v3.0.16
- Added check that the Synology NAS has an eSATA port or Inifinband port.
- Added support for InfiniBand expansion units for RS2421+, RS2421RP+ and RS2821RP+ NAS.
Expand Down
18 changes: 7 additions & 11 deletions syno_enable_eunit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# sudo -i /volume1/scripts/syno_enable_eunit.sh
#-----------------------------------------------------------------------------------

scriptver="v3.0.16"
scriptver="v3.0.17"
script=Synology_enable_eunit
repo="007revad/Synology_enable_eunit"
scriptname=syno_enable_eunit
Expand Down Expand Up @@ -999,7 +999,7 @@ edit_modeldtb(){
chmod 644 "$dts_file"

# Edit model.dts
for c in "${eboxs[@]}"; do
for c in "${eboxes[@]}"; do
# Edit model.dts if needed
if ! grep -q "$c"'\b' "$dtb_file"; then
dts_ebox "$c" "$dts_file"
Expand Down Expand Up @@ -1034,19 +1034,15 @@ check_enabled
enable_eunit(){
case "$choice" in
DX517|DX513|DX510)
eboxs=("$choice") && edit_modeldtb
eboxes=("$choice") && edit_modeldtb
return
;;
DX213)
eboxs=("$choice") && edit_modeldtb
eboxes=("$choice") && edit_modeldtb
return
;;
RX418|RX415|RX410)
eboxs=("$choice") && edit_modeldtb
return
;;
RX1217rp|RX1217|RX1214rp|RX1214|RX1211rp|RX1211)
eboxs=("$choice") && edit_modeldtb
eboxes=("$choice") && edit_modeldtb
return
;;
RX1217rp|RX1214rp|RX1211rp)
Expand All @@ -1059,8 +1055,8 @@ enable_eunit(){
eboxes=("$choice") && edit_modeldtb
return
;;
DX1215II|DX1215|DX1211)
eboxs=("$choice") && edit_modeldtb
DX1215II|DX1215|DX1211)
eboxes=("$choice") && edit_modeldtb
return
;;
Check)
Expand Down

0 comments on commit 5000484

Please sign in to comment.