summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-05-25 10:31:08 +0000
committerSteven Barth <steven@midlink.org>2009-05-25 10:31:08 +0000
commite9e22aca73d27410572871ae2870c41b96b11a8a (patch)
treeeaccc863600d60255301b9b941b976ff86bd3c76 /modules/admin-full
parent282e08a0c796d0b1ab66dc335f833d02f83ee10c (diff)
Fix: Mountpoints cannot be disabled
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
index 7873842f81..1e2a12fec1 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
@@ -61,7 +61,7 @@ mount.anonymous = true
mount.addremove = true
mount.template = "cbi/tblsection"
-mount:option(Flag, "enabled", translate("enable"))
+mount:option(Flag, "enabled", translate("enable")).rmempty = false
dev = mount:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
for i, d in ipairs(devices) do
dev:value(d, size[d] and "%s (%s MB)" % {d, size[d]})
@@ -77,7 +77,7 @@ swap.anonymous = true
swap.addremove = true
swap.template = "cbi/tblsection"
-swap:option(Flag, "enabled", translate("enable"))
+swap:option(Flag, "enabled", translate("enable")).rmempty = false
dev = swap:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
for i, d in ipairs(devices) do
dev:value(d, size[d] and "%s (%s MB)" % {d, size[d]})