From 156fd27e4f1c68c526ca923dafca29c80f5fc3e1 Mon Sep 17 00:00:00 2001
From: Ronny Nilsson <ronny.nilsson@iopsys.eu>
Date: Wed, 22 Apr 2020 22:27:18 +0200
Subject: [PATCH] base-files: reduce debug prints

---
 .../base-files/lib/upgrade/iopsys-4-to-5-migrator.sh          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iopsys-brcm63xx-arm/base-files/lib/upgrade/iopsys-4-to-5-migrator.sh b/iopsys-brcm63xx-arm/base-files/lib/upgrade/iopsys-4-to-5-migrator.sh
index 52fbca001..85f826017 100755
--- a/iopsys-brcm63xx-arm/base-files/lib/upgrade/iopsys-4-to-5-migrator.sh
+++ b/iopsys-brcm63xx-arm/base-files/lib/upgrade/iopsys-4-to-5-migrator.sh
@@ -788,7 +788,9 @@ nvram_old_convert() {
 	done
 
 	# Drop caches to ensure rereading just written data from flash.
-	echo 1 >/proc/sys/vm/drop_caches
+	sync
+	echo 4 >/proc/sys/vm/drop_caches
+	echo 3 >/proc/sys/vm/drop_caches
 	sleep 0.2
 
 	# Verify converted nvram.
-- 
GitLab