Skip to content

Commit

Permalink
Merge pull request #6 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad authored Oct 16, 2023
2 parents ad0c963 + 1e5a611 commit 9b2db72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.1.2
- Prevent DSM auto-updating to "Update #" during reinstall

v1.0.1
- Minor bug fix

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Easily re-install the same DSM version without losing any data or settings

- If you need to re-install the same full release DSM version this is much easier than resetting the Synology.
- It can also be used to roll back from an update version to the same full release version.
- It also prevents DSM auto-updating to "Update #" during reinstall.

### How to tell if a .pat file is a full release or a small update
- <img src="images/tick.svg" width="15" height="15"> Full release DSM pat files are a over 200MB and named *DSM_model_build.pat* like **DSM_DS223_64570.pat**
Expand All @@ -21,10 +22,8 @@ Easily re-install the same DSM version without losing any data or settings
3. Run this script via SSH or from <a href=how_to_run_from_scheduler.md/>Task Scheduler</a>.
4. Go to "Control Panel > Update & Restore > Manual DSM Update".
5. Browse to the DSM .pat file you downloaded in step 2 and click Open then OK.
6. *Optionally unplug your router from the Internet **after DSM has started installing** to prevent DSM updating to the latest update version.*
7. Click Update.
8. Wait for the Synology NAS to finished updating and rebooting.
9. *If you unpluged your router from the Internet in step 6, reconnect it now.*
6. 7. Click Update.
8. Wait for the Synology NAS to finished updating and rebooting.9.

## Download the script

Expand Down
3 changes: 3 additions & 0 deletions syno_dsm_reinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

# Maybe we should backup the VERSION file here

# Prevent DSM auto-updating to "Update #" during reinstall
sed -i "s/\"smart_nano_enabled\":true/\"smart_nano_enabled\":false/g" "/usr/syno/etc/update.conf"

currentbuild=$(synogetkeyvalue /etc.defaults/VERSION buildnumber)
if [[ -n $currentbuild ]]; then
echo "Current buildnumber is: $currentbuild"
Expand Down

0 comments on commit 9b2db72

Please sign in to comment.