From: Jo-Philipp Wich Date: Fri, 1 Nov 2019 11:45:00 +0000 (+0100) Subject: luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep state X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=af5dc2652eaf213d73c62885664dea7d49421ea0;p=project%2Fluci.git luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep state Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js index 43840f4071..440ed9acc8 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js @@ -299,7 +299,10 @@ return L.view.extend({ /* Currently the sysupgrade rpc call will not return, hence no promise handling */ fs.exec('/sbin/sysupgrade', opts); - L.ui.awaitReconnect(window.location.host, '192.168.1.1', 'openwrt.lan'); + if (keep.checked) + L.ui.awaitReconnect(window.location.host); + else + L.ui.awaitReconnect('192.168.1.1', 'openwrt.lan'); }, handleBackupList: function(ev) {