modules/admin-mini: Added DHCP page
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_network / dhcp.lua
index b22f735..e9ab6c9 100644 (file)
@@ -49,5 +49,16 @@ for i, line in pairs(luci.sys.execl("dnsmasq --help dhcp")) do
        k, v = line:match("([^ ]+) +([^ ]+)")
        s:option(Value, "dhcp"..k, v).optional = true
 end
+
+m2 = Map("luci_ethers", translate("luci_ethers"))
+
+s = m2:section(TypedSection, "static_lease", "")
+s.addremove = true
+s.anonymous = true
+s.template = "cbi/tblsection"
+
+s:option(Value, "macaddr", translate("macaddress"))
+s:option(Value, "ipaddr", translate("ipaddress"))
+
        
-return m
\ No newline at end of file
+return m, m2
\ No newline at end of file