From 76b0d74e7bf922b06749927eaca7dafbdd19f8d3 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 8 Dec 2008 16:18:55 +0000 Subject: Modified dnsmasq to add viewleases and logfile. git-svn-id: svn://svn.alpinelinux.org/acf/dnsmasq/trunk@1627 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dnsmasq-model.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dnsmasq-model.lua') diff --git a/dnsmasq-model.lua b/dnsmasq-model.lua index dbd600a..519fa89 100644 --- a/dnsmasq-model.lua +++ b/dnsmasq-model.lua @@ -10,6 +10,7 @@ require("validator") local configfile = "/etc/dnsmasq.conf" local processname = "dnsmasq" local packagename = "dnsmasq" +local leasefile = "/var/lib/misc/dnsmasq.leases" -- ################################################################################ -- LOCAL FUNCTIONS @@ -231,3 +232,6 @@ function setconfigfile(filedetails) return modelfunctions.setfiledetails(filedetails, {configfile}) end +function getleases() + return modelfunctions.getfiledetails(leasefile) +end -- cgit v1.2.3