luci-mod-system.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- a/package/feeds/luci/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js
  2. +++ b/package/feeds/luci/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js
  3. @@ -101,7 +101,7 @@ return view.extend({
  4. /* Currently the sysupgrade rpc call will not return, hence no promise handling */
  5. fs.exec('/sbin/firstboot', [ '-r', '-y' ]);
  6. - ui.awaitReconnect('192.168.1.1', 'openwrt.lan');
  7. + ui.awaitReconnect('10.0.0.1', 'kwrt.lan');
  8. },
  9. handleRestore: function(ev) {
  10. @@ -163,7 +163,7 @@ return view.extend({
  11. E('p', { 'class': 'spinning' }, _('The system is rebooting now. If the restored configuration changed the current LAN IP address, you might need to reconnect manually.'))
  12. ]);
  13. - ui.awaitReconnect(window.location.host, '192.168.1.1', 'openwrt.lan');
  14. + ui.awaitReconnect(window.location.host, '10.0.0.1', 'kwrt.lan');
  15. }, this))
  16. .catch(function(e) { ui.addNotification(null, E('p', e.message)) })
  17. .finally(function() { btn.firstChild.data = _('Upload archive...') });
  18. @@ -263,6 +263,7 @@ return view.extend({
  19. body.push(E('p', {}, E('label', { 'class': 'btn' }, [
  20. opts.backup_pkgs[0], ' ', _('Include in backup a list of current installed packages at /etc/backup/installed_packages.txt')
  21. ])));
  22. + opts.backup_pkgs[0].checked = true;
  23. };
  24. var cntbtn = E('button', {
  25. @@ -304,6 +305,10 @@ return view.extend({
  26. opts.keep[0].addEventListener('change', function(ev) {
  27. opts.skip_orig[0].disabled = !ev.target.checked;
  28. opts.backup_pkgs[0].disabled = !ev.target.checked;
  29. + if (ev.target.checked == false){
  30. + opts.skip_orig[0].checked =false
  31. + opts.backup_pkgs[0].checked =false
  32. + }
  33. });
  34. @@ -337,7 +342,7 @@ return view.extend({
  35. if (opts['keep'][0].checked)
  36. ui.awaitReconnect(window.location.host);
  37. else
  38. - ui.awaitReconnect('192.168.1.1', 'openwrt.lan');
  39. + ui.awaitReconnect('10.0.0.1', 'kwrt.lan');
  40. },
  41. handleBackupList: function(ev) {