Split up admin-core into admin-core and admin-full, preparing admin-mini
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_system / fstab.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14 m = Map("fstab", translate("a_s_fstab"))
15
16 mount = m:section(TypedSection, "mount", translate("a_s_fstab_mountpoints"), translate("a_s_fstab_mountpoints1"))
17 mount.anonymous = true
18 mount.addremove = true
19
20 mount:option(Flag, "enabled", translate("enable"))
21 mount:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
22 mount:option(Value, "target", translate("a_s_fstab_mountpoint"))
23 mount:option(Value, "fstype", translate("filesystem"), translate("a_s_fstab_fs1"))
24 mount:option(Value, "options", translate("options"), translatef("manpage", "siehe '%s' manpage", "mount"))
25
26
27 swap = m:section(TypedSection, "swap", "SWAP", translate("a_s_fstab_swap1"))
28 swap.anonymous = true
29 swap.addremove = true
30
31 swap:option(Flag, "enabled", translate("enable"))
32 swap:option(Value, "device", translate("device"), translate("a_s_fstab_device1"))
33
34 return m