diff options
Diffstat (limited to 'dhcp-model.lua')
-rw-r--r-- | dhcp-model.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua index 247b6c3..18a82bd 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -4,7 +4,7 @@ module (..., package.seeall) --- get additional libraries require("modelfunctions") -require("validator") +validator = require("acf.validator") local subnet = {} local configfile = "/etc/dhcp/dhcpd.conf" @@ -396,10 +396,13 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function startstop_service(action) - return modelfunctions.startstop_service(processname, action) +function get_startstop(clientdata) + return modelfunctions.get_startstop(processname) +end + +function startstop_service(startstop, action) + return modelfunctions.startstop_service(startstop, action) end - function getstatus () return modelfunctions.getstatus(processname, packagename, "DHCP Status") |