summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-10-21 15:30:22 +0200
committerJo-Philipp Wich <jo@mein.io>2019-10-21 15:30:22 +0200
commit36b052f8cc4ee142ad5126b5e4781ae1d7b38317 (patch)
tree035d1731fefc3320538799254b6b718671151d2d /modules/luci-mod-system/htdocs/luci-static/resources
parentdffa9c57fee931e4de53e3ae955d632dcd77a42d (diff)
luci-mod-system: flash.sh: gracefully handle missing sysupgrade.conf
Fixes: #3228 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js2
1 files changed, 1 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 d18246b6be..612c4a4f92 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
@@ -517,7 +517,7 @@ return L.view.extend({
o.forcewrite = true;
o.rows = 30;
o.load = function(section_id) {
- return fs.read('/etc/sysupgrade.conf', '');
+ return L.resolveDefault(fs.read('/etc/sysupgrade.conf'), '');
};