WIFI-2152: Allow re-trying a failed upgrade

This commit is contained in:
Owen Anderson
2021-06-17 15:22:27 -04:00
committed by Rick Sommerville
parent bebf6d322d
commit d6d45ba609
2 changed files with 14 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ uci commit
/sbin/sysupgrade $IMGFILE
if [ "$?" != "0" ] ; then
echo "$0: Sysupgrade failed."
rm /tmp/sysupgrade.meta
rm /tmp/upgrade.*
exit 1
fi

View File

@@ -0,0 +1,12 @@
--- a/src/um/src/um_ovsdb.c
+++ b/src/um/src/um_ovsdb.c
@@ -356,7 +356,8 @@ static void callback_AWLAN_Node(
//TODO Is there something that needs to be done here?
}
- if(awlan_node->upgrade_timer_changed){
+ if(awlan_node->upgrade_timer_changed
+ || ((awlan_node->firmware_url_changed) && (strlen(awlan_node->firmware_url) > 0))) {
if (awlan_node->upgrade_timer > 0)
{
/* if there is active timer, stop it to set new value */