5 Copyright (C) 2014, Cisco Systems, Inc.
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Author: Petar Koretic <petar.koretic@sartura.hr>
17 local fs = require "nixio.fs"
19 m = Map("lxc", translate("LXC Containers"),
20 translate("<b>Please note:</b> For LXC Containers you need a custom OpenWrt image.<br />")
21 .. translate("The image should include at least support for 'kernel cgroups', 'kernel namespaces' and 'miscellaneous LXC related options'."))
23 if fs.access("/etc/config/lxc") then
24 m:section(SimpleSection).template = "lxc"
26 s = m:section(TypedSection, "lxc", translate("Options"))
30 s:option(Value, "url", translate("Containers URL"))