luci-mod-system: mounts.js: implicitely create globals section
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
71e265a7f0
commit
e39ab87255
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ return L.view.extend({
|
|||
btrfs: results[6]
|
||||
};
|
||||
|
||||
if (!uci.sections('fstab', 'global').length)
|
||||
uci.add('fstab', 'global');
|
||||
|
||||
m = new form.Map('fstab', _('Mount Points'));
|
||||
|
||||
s = m.section(form.TypedSection, 'global', _('Global Settings'));
|
||||
|
|
Loading…
Reference in a new issue