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:
parent
7d84396471
commit
af5dc2652e
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue