mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 8793bd147cf487245ab31193a5d5f92e6a4f45d2 Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Sat, 27 Apr 2024 12:04:31 +0200
|
|
Subject: [PATCH 18/68] base-files: add CI_FWSETENV support
|
|
|
|
Signed-off-by: John Crispin <john@phrozen.org>
|
|
---
|
|
package/base-files/files/lib/upgrade/nand.sh | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh
|
|
index d910bf1791..b298b01351 100644
|
|
--- a/package/base-files/files/lib/upgrade/nand.sh
|
|
+++ b/package/base-files/files/lib/upgrade/nand.sh
|
|
@@ -14,6 +14,9 @@ CI_UBIPART="${CI_UBIPART:-ubi}"
|
|
# 'rootfs' UBI volume on NAND contains the rootfs
|
|
CI_ROOTPART="${CI_ROOTPART:-rootfs}"
|
|
|
|
+# update uboot-env if upgrade suceeded
|
|
+CI_FWSETENV=
|
|
+
|
|
ubi_mknod() {
|
|
local dir="$1"
|
|
local dev="/dev/$(basename $dir)"
|
|
@@ -429,6 +432,7 @@ nand_do_upgrade() {
|
|
|
|
nand_do_upgrade_success() {
|
|
if nand_do_restore_config && sync; then
|
|
+ [ -n "$CI_FWSETENV" ] && fw_setenv $CI_FWSETENV
|
|
echo "sysupgrade successful"
|
|
umount -a
|
|
reboot -f
|
|
--
|
|
2.34.1
|
|
|