diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-21 15:30:22 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-21 15:30:22 +0200 |
commit | 36b052f8cc4ee142ad5126b5e4781ae1d7b38317 (patch) | |
tree | 035d1731fefc3320538799254b6b718671151d2d /modules/luci-mod-system/htdocs/luci-static/resources | |
parent | dffa9c57fee931e4de53e3ae955d632dcd77a42d (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.js | 2 |
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 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'), ''); }; |