summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-system')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js
index b9028b20e..dfc17ee73 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js
@@ -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'));