From 523441bded4a0db71f25419eba999e9a74a40415 Mon Sep 17 00:00:00 2001
From: Dave Russell <39733752+007revad@users.noreply.github.com>
Date: Mon, 16 Oct 2023 12:42:27 +1100
Subject: [PATCH 1/3] Update syno_dsm_reinstall.sh
Prevent DSM auto-updating to "Update #" during reinstall
---
syno_dsm_reinstall.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/syno_dsm_reinstall.sh b/syno_dsm_reinstall.sh
index 8a24aaa..fda9548 100644
--- a/syno_dsm_reinstall.sh
+++ b/syno_dsm_reinstall.sh
@@ -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"
From d74bc5cee26560167bd32676c1528dba3746d83d Mon Sep 17 00:00:00 2001
From: Dave Russell <39733752+007revad@users.noreply.github.com>
Date: Mon, 16 Oct 2023 12:50:38 +1100
Subject: [PATCH 2/3] Update README.md
Prevent DSM auto-updating to "Update #" during reinstall
---
README.md | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index fa17d74..2c43115 100644
--- a/README.md
+++ b/README.md
@@ -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
- Full release DSM pat files are a over 200MB and named *DSM_model_build.pat* like **DSM_DS223_64570.pat**
@@ -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 Task Scheduler.
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
From 1e5a6112166864f49309edc5b11f49f764da62c7 Mon Sep 17 00:00:00 2001
From: Dave Russell <39733752+007revad@users.noreply.github.com>
Date: Mon, 16 Oct 2023 12:52:38 +1100
Subject: [PATCH 3/3] Update CHANGES.txt
Prevent DSM auto-updating to "Update #" during reinstall
---
CHANGES.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CHANGES.txt b/CHANGES.txt
index 9fea152..74af91f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,6 @@
+v1.1.2
+- Prevent DSM auto-updating to "Update #" during reinstall
+
v1.0.1
- Minor bug fix