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:
parent
dffa9c57fe
commit
36b052f8cc
1 changed files with 1 additions and 1 deletions
|
@ -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'), '');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue