1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-17 20:54:03 +02:00
This commit is contained in:
Nils Schneider 2014-01-29 10:19:48 -08:00
commit 828b2c162d
2 changed files with 6 additions and 3 deletions

View File

@ -58,8 +58,11 @@ function action_reboot()
uci:save("gluon-config-mode") uci:save("gluon-config-mode")
uci:commit("gluon-config-mode") uci:commit("gluon-config-mode")
hostname = uci:get_first("system", "system", "hostname")
if nixio.fork() ~= 0 then if nixio.fork() ~= 0 then
luci.template.render("gluon-config-mode/reboot", {pubkey=pubkey}) luci.template.render("gluon-config-mode/reboot",
{pubkey=pubkey, hostname=hostname})
else else
debug.setfenv(io.stdout, debug.getfenv(io.open '/dev/null')) debug.setfenv(io.stdout, debug.getfenv(io.open '/dev/null'))
io.stdout:close() io.stdout:close()

View File

@ -15,7 +15,7 @@ $Id$
<html> <html>
<head> <head>
<title><%=luci.sys.hostname()%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %></title> <title><%=hostname%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %></title>
<link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" /> <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
</head> </head>
<body> <body>
@ -28,7 +28,7 @@ $Id$
@config_mode.msg_pubkey@ @config_mode.msg_pubkey@
</p> </p>
<div class="the-key"> <div class="the-key">
# <%=luci.sys.hostname()%> # <%=hostname%>
<br/> <br/>
<%=pubkey%> <%=pubkey%>
</div> </div>