add some indirection around make targets of module.mk, so you can combine it more...
[project/luci.git] / modules / freifunk / src / controller / freifunk / luciinfo.lua
index bc45898..aabab19 100644 (file)
@@ -1,28 +1,28 @@
-module("ffluci.controller.freifunk.luciinfo", package.seeall)
+module("luci.controller.freifunk.luciinfo", package.seeall)
 
 function index()
        node("freifunk", "luciinfo").target = action_index
 end
 
 function action_index()
-       local uci = ffluci.model.uci.StateSession()
+       local uci = luci.model.uci.StateSession()
 
-       ffluci.http.prepare_content("text/plain")
+       luci.http.prepare_content("text/plain")
        
        -- General
        print("luciinfo.api=1")
-       print("luciinfo.version=" .. tostring(require("ffluci").__version__))
+       print("luciinfo.version=" .. tostring(require("luci").__version__))
        
        -- Sysinfo
-       local s, m, r = ffluci.sys.sysinfo()
-       local dr = ffluci.sys.net.defaultroute()
-       dr = dr and ffluci.sys.net.hexip4(dr.Gateway) or ""
-       local l1, l5, l15 = ffluci.sys.loadavg()
+       local s, m, r = luci.sys.sysinfo()
+       local dr = luci.sys.net.defaultroute()
+       dr = dr and luci.sys.net.hexip4(dr.Gateway) or ""
+       local l1, l5, l15 = luci.sys.loadavg()
        
        print("sysinfo.system=" .. sanitize(s))
        print("sysinfo.cpu=" .. sanitize(m))
        print("sysinfo.ram=" .. sanitize(r))
-       print("sysinfo.hostname=" .. sanitize(ffluci.sys.hostname()))
+       print("sysinfo.hostname=" .. sanitize(luci.sys.hostname()))
        print("sysinfo.load1=" .. tostring(l1))
        print("sysinfo.load5=" .. tostring(l5))
        print("sysinfo.load15=" .. tostring(l15))