luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep state

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-11-01 12:45:00 +01:00
parent 7d84396471
commit af5dc2652e

View file

@ -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) {