luci-mod-system: flash.sh: gracefully handle missing sysupgrade.conf

Fixes: #3228
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-10-21 15:30:22 +02:00
parent dffa9c57fe
commit 36b052f8cc

View file

@ -517,7 +517,7 @@ return L.view.extend({
o.forcewrite = true; o.forcewrite = true;
o.rows = 30; o.rows = 30;
o.load = function(section_id) { o.load = function(section_id) {
return fs.read('/etc/sysupgrade.conf', ''); return L.resolveDefault(fs.read('/etc/sysupgrade.conf'), '');
}; };