summaryrefslogtreecommitdiffstats
path: root/syslog-controller.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-09 08:53:18 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-09 08:53:18 +0000
commit8b44052f3210ffaca4b4e51506b5eec295f16fda (patch)
tree0bbec0dcdfb1dd098c2e1f043ea465185e7ca7ae /syslog-controller.lua
parent999635326effa703ecb171abb79f9f44cd9e9b4a (diff)
downloadacf-alpine-baselayout-8b44052f3210ffaca4b4e51506b5eec295f16fda.tar.bz2
acf-alpine-baselayout-8b44052f3210ffaca4b4e51506b5eec295f16fda.tar.xz
Designing graphics/ideas on syslog
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@518 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'syslog-controller.lua')
-rw-r--r--syslog-controller.lua22
1 files changed, 12 insertions, 10 deletions
diff --git a/syslog-controller.lua b/syslog-controller.lua
index be3e322..76089fb 100644
--- a/syslog-controller.lua
+++ b/syslog-controller.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-require("privsep")
+--require("privsep")
require("join")
-- those should go into acf.conf
@@ -11,19 +11,20 @@ local group="nobody"
-- drop privileges and put privileged model funcs in self.priv
mvc = {}
function mvc.on_load(self)
- self.priv = privsep.drop_privs(user, group, self.model.priv)
+-- self.priv = privsep.drop_privs(user, group, self.model.priv)
end
-function basic(self)
+
+function status(self)
+end
+function config(self)
local ctl = {}
local opts = self.model.readopts()
- ctl.pidlist = self.priv.is_enabled()
+-- ctl.pidlist = self.priv.is_enabled()
if pidlist then
- ctl.enabled = "checked=yes"
- ctl.disabled = ""
+ ctl.status = "enabled"
else
- ctl.enabled = ""
- ctl.disabled = "checked=yes"
+ ctl.status = "Disabled"
end
ctl.opts = opts
if opts and opts.remote then
@@ -33,7 +34,8 @@ function basic(self)
ctl.remote = ""
ctl.host = ""
end
- ctl.debug="opts="..tostring(opts)
-
return ctl
end
+function expert(self)
+end
+