Skip to content

Commit

Permalink
Merge pull request #31 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad committed Nov 19, 2023
2 parents fc747d5 + 615452e commit 25dcb80
Show file tree
Hide file tree
Showing 21 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ sudo -i /volume1/scripts/syno_shr_switch.sh
## Screenshots

<p align="center">Check currently set RAID type</p>
<p align="center"><img src="/images/raidgroup_shr-switch_check.png"></p>
<p align="center"><img src="/images/raidgroup_shr-switch_check3.png"></p>

<p align="center">Switch to SHR</p>
<p align="center"><img src="/images/raidgroup_shr-switch_shr.png"></p>
<p align="center"><img src="/images/raidgroup_shr-switch_shr3.png"></p>

<p align="center">Switch to RAID Groups</p>
<p align="center"><img src="/images/raidgroup_shr-switch_raidgroup.png"></p>
<p align="center"><img src="/images/raidgroup_shr-switch_raidgroup3.png"></p>

<p align="center">Restore from the backup</p>
<p align="center"><img src="/images/raidgroup_shr-switch_restored.png"></p>
<p align="center"><img src="/images/raidgroup_shr-switch_restored3.png"></p>

Binary file removed images/how_to_download_generic.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch1.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch2.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch3.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch_check.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch_raidf1.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch_raidf12.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch_restored.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch_restored2.png
Binary file not shown.
Binary file removed images/raidf1_shr-switch_shr.png
Binary file not shown.
Binary file removed images/raidgroup_shr-switch_check.png
Binary file not shown.
Binary file added images/raidgroup_shr-switch_check3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/raidgroup_shr-switch_raidgroup.png
Binary file not shown.
Binary file added images/raidgroup_shr-switch_raidgroup3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/raidgroup_shr-switch_restored.png
Binary file not shown.
Binary file added images/raidgroup_shr-switch_restored3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/raidgroup_shr-switch_shr.png
Binary file not shown.
Binary file added images/raidgroup_shr-switch_shr3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/temp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
delete me
16 changes: 8 additions & 8 deletions syno_shr_switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
#------------------------------------------------------------------------------
# Switch between SHR and RAID Group for models that have SHR & SHR-2 disabled
#
# Github: https://github.com/007revad/Synology_RAID-F1_SHR_switch
# Github: https://github.com/007revad/Synology_SHR_switch
# Script verified at https://www.shellcheck.net/
#
# To run in a shell (replace /volume1/scripts/ with path to script):
# sudo /volume1/scripts/syno_raidf1_shr_switch.sh
# sudo /volume1/scripts/syno_shr_switch.sh
#------------------------------------------------------------------------------

scriptver="v1.0.8"
script=Synology_RAID-F1_SHR_switch
repo="007revad/Synology_RAID-F1_SHR_switch"
scriptver="v1.0.9"
script=Synology_SHR_switch
repo="007revad/Synology_SHR_switch"

scriptshow=Synology_RAID-Group_SHR_switch

Expand All @@ -37,7 +37,7 @@ Error='\e[41m' # ${Error}
Off='\e[0m' # ${Off}


usage(){
usage(){
cat <<EOF
$scriptshow $scriptver - by 007revad
Expand All @@ -52,7 +52,7 @@ EOF
exit 0
}

scriptversion(){
scriptversion(){
cat <<EOF
$scriptshow $scriptver - by 007revad
Expand Down Expand Up @@ -133,7 +133,7 @@ echo -e "$model DSM $productversion-$buildnumber$smallfix $buildphase\n"
#------------------------------------------------------------------------------
# Check latest release with GitHub API

get_latest_release() {
get_latest_release(){
# Curl timeout options:
# https://unix.stackexchange.com/questions/94604/does-curl-have-a-timeout
curl --silent -m 10 --connect-timeout 5 \
Expand Down

0 comments on commit 25dcb80

Please sign in to comment.