From 38be13224a35c42f11267a4c81220fb6a5f04adb Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Jun 2009 15:00:46 +0000 Subject: Changed status to use openrc status, changed startstop to enable all actions regardless of status. --- lib/controllerfunctions.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/controllerfunctions.lua') diff --git a/lib/controllerfunctions.lua b/lib/controllerfunctions.lua index dbdfd19..ef910d2 100644 --- a/lib/controllerfunctions.lua +++ b/lib/controllerfunctions.lua @@ -77,14 +77,9 @@ function handle_form(self, getFunction, setFunction, clientdata, option, label, return form end -function handle_startstop(self, startstopfunction, getstatusfunction, clientdata) +function handle_startstop(self, startstopfunction, clientdata) local result = startstopfunction(clientdata.action) result.value.result = self:redirect_to_referrer(result.value.result) - - local status = getstatusfunction() - if status.value.status then status = status.value.status end - result.value.status = status - return result end -- cgit v1.2.3