-%>
<%
require("luci.sys")
-local load1, load5, load15 = luci.sys.loadavg()
+require("luci.util")
+
+local boardinfo = luci.util.ubus("system", "board")
+
local request = require("luci.dispatcher").context.path
local category = request[1]
local tree = luci.dispatcher.node()
local cattree = category and luci.dispatcher.node(category)
local node = luci.dispatcher.context.dispatched
-local hostname = luci.sys.hostname()
local c = tree
for i,r in ipairs(request) do
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
- <title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
+ <title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
<!--[if lt IE 7]>
<script type="text/javascript">