local srv = require "luci.lucid.http.server"
local proto = require "luci.http.protocol"
+local util = require "luci.util"
module "luci.lucid.http.handler.catchall"
option slave rpcd
list address 12900
list publisher mainrpc
- option enabled 1
\ No newline at end of file
+ option enabled 1
+
+config 'daemon' 'splashr'
+ option 'slave' 'httpd'
+ list 'address' '8082'
+ list 'publisher' 'splashredir'
+ option 'enabled' '1'
+
+config 'Redirector' 'splashredir'
+ option 'name' 'Splashd'
+ option 'virtual' '/'
+ option 'physical' ':80/luci/splash'
+
+
\ No newline at end of file
end
end
+ state:set(UCINAME, "main", "pid", nixio.getpid())
+ state:save(UCINAME)
+
run()
end
+function stop()
+ local pid = tonumber(state:get(UCINAME, "main", "pid"))
+ if pid then
+ return nixio.kill(pid, nixio.const.SIGTERM)
+ end
+ return false
+end
+
function prepare()
local debug = tonumber((cursor:get(UCINAME, "main", "debug")))