From 36b052f8cc4ee142ad5126b5e4781ae1d7b38317 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Oct 2019 15:30:22 +0200 Subject: luci-mod-system: flash.sh: gracefully handle missing sysupgrade.conf Fixes: #3228 Signed-off-by: Jo-Philipp Wich --- .../luci-mod-system/htdocs/luci-static/resources/view/system/flash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d18246b6b..612c4a4f9 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'), ''); }; -- cgit v1.2.3