[PATCH] web-app: open debate about manually restarted system update usage

2 views
Skip to first unread message

Adrian DC

unread,
Feb 20, 2026, 3:50:54 PM (2 days ago) Feb 20
to swup...@googlegroups.com, Stefano Babic, Adrian DC
On setups using 'swupdate-progress' without '-r' to avoid
automatic reboot after one successful installation,
the done step message is 'Restarting system', yet without effect.

The reason is to flash multiple SWUpdate packages at once,
for example system update followed by applicative configurations.

We currently patch the raw value at Yocto build time
to 'System update successful, please restart the system',
however I'd like to seek for a better alternative, thanks!
---

Signed-off-by: Adrian DC <radi...@gmail.com>
---
examples/www/v2/index.html | 2 +-
web-app/index.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/www/v2/index.html b/examples/www/v2/index.html
index db1255cf..4b9ba68a 100755
--- a/examples/www/v2/index.html
+++ b/examples/www/v2/index.html
@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel="icon" href="images/favicon.png" type="image/png"><link rel="stylesheet" href="css/bootstrap.min.css"><link rel="stylesheet" href="css/dropzone.min.css"><link rel="stylesheet" href="css/fontawesome.min.css"><link rel="stylesheet" href="css/solid.min.css"><link rel="stylesheet" href="css/swupdate.min.css"><script src="js/jquery.min.js"></script><script src="js/bootstrap.min.js"></script><script src="js/dropzone.min.js"></script><script src="js/swupdate.min.js"></script><title>SWUpdate - Software Update for Embedded Systems</title></head><body><!-- Navigation Header --><nav class="navbar sticky-top navbar-expand-sm navbar-dark bg-primary"><div class="container"><a class="navbar-brand" href="#"><img class="d-inline-block align-top" src="images/logo.png" alt=""> </a><button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarText"><ul class="navbar-nav ms-auto"><li class="nav-item"><a id="swu-restart" class="nav-link" href="#"><i class="fas fa-sync"></i> Restart System</a></li></ul></div></div></nav><!-- Use Bootstrap Grid Container --><div class="container"><!-- Header --><div class="row my-3"><div class="col"><div class="card opacity-75"><div class="card-header pb-0"><h1 class="display-4"><span class="text-primary">SW</span>Update</h1><p class="lead">Software update for embedded systems</p><p>Upload a software image below, or restart the system at the top right corner.</p></div></div></div></div><div class="row my-3"><div class="col"><div class="card opacity-75"><div class="card-header pb-0"><h5><i class="fas fa-wrench"></i> Software Update</h5></div><div class="card-body"><!-- Dropzone Button for drag&drop files --><form class="dropzone border rounded mb-3" id="dropzone" action="./upload" method="post" enctype="multipart/form-data"><div class="dz-default dz-message"><span class="dz-message">Click here, or drag and drop a software update image file to this area.</span></div></form><!-- Status --><div id="swu-idle" class="alert alert-secondary"><i class="fas fa-info-circle"></i> Update not started.</div><div id="swu-run" class="alert alert-warning" style="display: none;"><i class="fas fa-exclamation-triangle"></i> Updating may take a few minutes, please don't turn off the power.</div><div id="swu-success" class="alert alert-success" style="display: none;"><i class="fas fa-check-circle"></i> Updated successfully.</div><div id="swu-failure" class="alert alert-danger" style="display: none;"><i class="fas fa-times-circle"></i> Update failed.</div><div id="swu-done" class="alert alert-info" style="display: none;"><i class="fas fa-sync"></i> Restarting system.</div><!-- Progress --> <i id="swu-progress-spinner" class="spinner-border invisible" role="status"></i> <strong id="swu-progress-run" style="display: none;">Updating:</strong> <span id="swu-progress-name"></span> <span id="swu-progress-value" class="float-right"></span><div class="progress" role="progressbar"><div id="swu-progress-bar" class="progress-bar progress-bar-striped" style="height: 1.5rem"></div></div></div></div></div></div><!-- Messages --><div class="row my-3"><div class="col"><div class="card opacity-75"><div class="card-header" id="headingMessages"><a class="h5 collapsed" data-bs-toggle="collapse" data-bs-target="#collapseMessages" aria-expanded="false" aria-controls="collapseMessages"><i class="fas"></i> Messages</a></div><div id="collapseMessages" class="collapse" aria-labelledby="headingMessages"><div class="card-body" id="messages"></div></div></div></div></div><!-- Restart --><div id="swu-restart-modal" class="modal fade" tabindex="-1"><div class="modal-dialog modal-dialog-centered"><div class="modal-content"><div class="modal-body"><i class="spinner-border" role="status"></i><h5>The system will restart. Please be patient, as restarting takes about one minute.</h5></div></div></div></div></div></body></html>
\ No newline at end of file
+<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel="icon" href="images/favicon.png" type="image/png"><link rel="stylesheet" href="css/bootstrap.min.css"><link rel="stylesheet" href="css/dropzone.min.css"><link rel="stylesheet" href="css/fontawesome.min.css"><link rel="stylesheet" href="css/solid.min.css"><link rel="stylesheet" href="css/swupdate.min.css"><script src="js/jquery.min.js"></script><script src="js/bootstrap.min.js"></script><script src="js/dropzone.min.js"></script><script src="js/swupdate.min.js"></script><title>SWUpdate - Software Update for Embedded Systems</title></head><body><!-- Navigation Header --><nav class="navbar sticky-top navbar-expand-sm navbar-dark bg-primary"><div class="container"><a class="navbar-brand" href="#"><img class="d-inline-block align-top" src="images/logo.png" alt=""> </a><button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarText"><ul class="navbar-nav ms-auto"><li class="nav-item"><a id="swu-restart" class="nav-link" href="#"><i class="fas fa-sync"></i> Restart System</a></li></ul></div></div></nav><!-- Use Bootstrap Grid Container --><div class="container"><!-- Header --><div class="row my-3"><div class="col"><div class="card opacity-75"><div class="card-header pb-0"><h1 class="display-4"><span class="text-primary">SW</span>Update</h1><p class="lead">Software update for embedded systems</p><p>Upload a software image below, or restart the system at the top right corner.</p></div></div></div></div><div class="row my-3"><div class="col"><div class="card opacity-75"><div class="card-header pb-0"><h5><i class="fas fa-wrench"></i> Software Update</h5></div><div class="card-body"><!-- Dropzone Button for drag&drop files --><form class="dropzone border rounded mb-3" id="dropzone" action="./upload" method="post" enctype="multipart/form-data"><div class="dz-default dz-message"><span class="dz-message">Click here, or drag and drop a software update image file to this area.</span></div></form><!-- Status --><div id="swu-idle" class="alert alert-secondary"><i class="fas fa-info-circle"></i> Update not started.</div><div id="swu-run" class="alert alert-warning" style="display: none;"><i class="fas fa-exclamation-triangle"></i> Updating may take a few minutes, please don't turn off the power.</div><div id="swu-success" class="alert alert-success" style="display: none;"><i class="fas fa-check-circle"></i> Updated successfully.</div><div id="swu-failure" class="alert alert-danger" style="display: none;"><i class="fas fa-times-circle"></i> Update failed.</div><div id="swu-done" class="alert alert-info" style="display: none;"><i class="fas fa-sync"></i> System update successful, please restart the system.</div><!-- Progress --> <i id="swu-progress-spinner" class="spinner-border invisible" role="status"></i> <strong id="swu-progress-run" style="display: none;">Updating:</strong> <span id="swu-progress-name"></span> <span id="swu-progress-value" class="float-right"></span><div class="progress" role="progressbar"><div id="swu-progress-bar" class="progress-bar progress-bar-striped" style="height: 1.5rem"></div></div></div></div></div></div><!-- Messages --><div class="row my-3"><div class="col"><div class="card opacity-75"><div class="card-header" id="headingMessages"><a class="h5 collapsed" data-bs-toggle="collapse" data-bs-target="#collapseMessages" aria-expanded="false" aria-controls="collapseMessages"><i class="fas"></i> Messages</a></div><div id="collapseMessages" class="collapse" aria-labelledby="headingMessages"><div class="card-body" id="messages"></div></div></div></div></div><!-- Restart --><div id="swu-restart-modal" class="modal fade" tabindex="-1"><div class="modal-dialog modal-dialog-centered"><div class="modal-content"><div class="modal-body"><i class="spinner-border" role="status"></i><h5>The system will restart. Please be patient, as restarting takes about one minute.</h5></div></div></div></div></div></body></html>
diff --git a/web-app/index.html b/web-app/index.html
index 2e0e9a2d..43d5aa07 100755
--- a/web-app/index.html
+++ b/web-app/index.html
@@ -89,7 +89,7 @@
<i class="fas fa-times-circle"></i> Update failed.
</div>
<div id="swu-done" class="alert alert-info" style="display: none;">
- <i class="fas fa-sync"></i> Restarting system.
+ <i class="fas fa-sync"></i> System update successful, please restart the system.
</div>

<!-- Progress -->
--
2.43.0

Reply all
Reply to author
Forward
0 new messages