Changeset 5743
- Timestamp:
- 03/08/10 02:07:02 (3 years ago)
- Location:
- luci/branches/luci-0.9/modules
- Files:
-
- 2 removed
- 1 modified
-
admin-core/root/etc/config/luci_ethers (deleted)
-
admin-core/root/etc/init.d/luci_ethers (deleted)
-
admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/branches/luci-0.9/modules/admin-full/luasrc/model/cbi/admin_network/dhcpleases.lua
r5118 r5743 3 3 4 4 Copyright 2008 Steven Barth <steven@midlink.org> 5 Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> 5 6 6 7 Licensed under the Apache License, Version 2.0 (the "License"); … … 18 19 local fs = require "nixio.fs" 19 20 20 m2 = Map(" luci_ethers", translate("dhcp_leases"))21 m2 = Map("dhcp", translate("dhcp_leases")) 21 22 22 23 local leasefn, leasefp, leases … … 47 48 end 48 49 49 s = m2:section(TypedSection, " static_lease", translate("luci_ethers"))50 s = m2:section(TypedSection, "host", translate("luci_ethers")) 50 51 s.addremove = true 51 52 s.anonymous = true 52 53 s.template = "cbi/tblsection" 53 54 54 mac = s:option(Value, "macaddr", translate("macaddress")) 55 ip = s:option(Value, "ipaddr", translate("ipaddress")) 55 name = s:option(Value, "name", translate("hostname")) 56 mac = s:option(Value, "mac", translate("macaddress")) 57 ip = s:option(Value, "ip", translate("ipaddress")) 56 58 sys.net.arptable(function(entry) 57 59 ip:value(entry["IP address"])
