From af5dc2652eaf213d73c62885664dea7d49421ea0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 1 Nov 2019 12:45:00 +0100 Subject: luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep state Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/system/flash.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/luci-mod-system/htdocs/luci-static/resources') 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) { -- cgit v1.2.3