diff options
author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2016-01-21 22:17:05 +0100 |
---|---|---|
committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2016-01-21 22:17:05 +0100 |
commit | f779b00d883f965e405944f3c872b5ee763836e7 (patch) | |
tree | 0b6b913cbf59db7978f48ee65e8f78406579a5b2 /modules/luci-base/luasrc/tools/status.lua | |
parent | 63d70daae1921d9f5a92cf2221ca4f1601c78ef5 (diff) |
sys.lua _nethints(): read location of dhcp.lease file from uci
status.lua - change default directory of dhcp.leases file
sys.lua - read location of dhcp.leases file from uci
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'modules/luci-base/luasrc/tools/status.lua')
-rw-r--r-- | modules/luci-base/luasrc/tools/status.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/tools/status.lua b/modules/luci-base/luasrc/tools/status.lua index 0dd092c6df..ac053eac8c 100644 --- a/modules/luci-base/luasrc/tools/status.lua +++ b/modules/luci-base/luasrc/tools/status.lua @@ -8,7 +8,7 @@ local uci = require "luci.model.uci".cursor() local function dhcp_leases_common(family) local rv = { } local nfs = require "nixio.fs" - local leasefile = "/var/dhcp.leases" + local leasefile = "/tmp/dhcp.leases" uci:foreach("dhcp", "dnsmasq", function(s) |