Commit 76b0d74e authored by Ted Trask's avatar Ted Trask
Browse files

Modified dnsmasq to add viewleases and logfile.

git-svn-id: svn://svn.alpinelinux.org/acf/dnsmasq/trunk@1627 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent 5d3d6549
......@@ -21,3 +21,7 @@ function expert(self)
return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set")
end
function viewleases(self)
return self.model.getleases()
end
<% local data, viewlibrary = ...
require("viewfunctions")
%>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {name="/var/log/messages", grep="dnsmasq"})
end %>
......@@ -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
../filedetails-html.lsp
\ No newline at end of file
#CAT GROUP/DESC TAB ACTION
Networking 13DNSmasq Status status
Networking 13DNSmasq Config config
Networking 13DNSmasq View_Leases viewleases
Networking 13DNSmasq Expert expert
Networking 13DNSmasq Logfile logfile
USER=dnsmasq:status,dnsmasq:startstop
USER=dnsmasq:status,dnsmasq:startstop,dnsmasq:viewleases,dnsmasq:logfile
EDITOR=dnsmasq:config
EXPERT=dnsmasq:expert
ADMIN=dnsmasq:status,dnsmasq:startstop,dnsmasq:config,dnsmasq:expert
ADMIN=dnsmasq:status,dnsmasq:startstop,dnsmasq:viewleases,dnsmasq:logfile,dnsmasq:config,dnsmasq:expert
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment