Skip to content

Commit

Permalink
Merge pull request #14 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad authored Aug 9, 2023
2 parents aad6049 + 2d837f3 commit 6d6e522
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.0.6
- Bug fix for displaying results when --check option used.

v1.0.5
- Bug fix for RS...RP models.

Expand Down
11 changes: 4 additions & 7 deletions syno_enable_m2_card.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# sudo -i /volume1/scripts/syno_enable_m2_card.sh
#-----------------------------------------------------------------------------------

scriptver="v1.0.5"
scriptver="v1.0.6"
script=Synology_enable_M2_card
repo="007revad/Synology_enable_M2_card"

Expand Down Expand Up @@ -268,10 +268,6 @@ if ! printf "%s\n%s\n" "$tag" "$scriptver" |
if [[ $copyerr != 1 ]] && [[ $permerr != 1 ]]; then
echo -e "\n$tag and changes.txt downloaded to:"\
"$scriptpath"
#echo -e "${Cyan}Do you want to stop this script"\
# "so you can run the new one?${Off} [y/n]"
#read -r reply
#if [[ ${reply,,} == "y" ]]; then exit; fi

# Reload script
printf -- '-%.0s' {1..79}; echo # print 79 -
Expand Down Expand Up @@ -361,7 +357,7 @@ check_section_key_value(){
if [[ -f $1 ]]; then
if [[ -n $2 ]]; then
if [[ -n $3 ]]; then
echo -e "${Yellow}$3${Off} = $setting" >&2
echo -e "${Yellow}$4${Off} = $setting" >&2
else
echo -e "Key name not specified!" >&2
fi
Expand Down Expand Up @@ -412,10 +408,11 @@ if [[ $check == "yes" ]]; then
fi



#------------------------------------------------------------------------------
# Enable unsupported Synology M2 PCIe cards

# In DSM 7.2 every NAS model has the same /usr/syno/etc.defaults/adapter_cards.conf

# DS1821+ and DS1621+ also need edited device tree blob file /etc.defaults/model.dtb
# To support M2D18:
# DS1823xs+, DS2422+, RS2423+, RS2421+, RS2421RP+ and RS2821RP+ need edited model.dtb
Expand Down

0 comments on commit 6d6e522

Please sign in to comment.