diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-11-01 12:45:00 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-11-01 12:45:00 +0100 |
commit | af5dc2652eaf213d73c62885664dea7d49421ea0 (patch) | |
tree | 71f22fd48cf621ec3893e76fe2c2549136b8af88 /modules/luci-mod-system/htdocs/luci-static/resources/view | |
parent | 7d843964711e9e26ff2c6fb97b340afd4a68b179 (diff) |
luci-mod-system: flash.js: upon sysupgrade, select reconnect ip by keep state
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources/view')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |