diff --git a/gluon/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua b/gluon/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua index 1842caa..906d926 100644 --- a/gluon/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua +++ b/gluon/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua @@ -58,8 +58,11 @@ function action_reboot() uci:save("gluon-config-mode") uci:commit("gluon-config-mode") + hostname = uci:get_first("system", "system", "hostname") + 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 debug.setfenv(io.stdout, debug.getfenv(io.open '/dev/null')) io.stdout:close() diff --git a/gluon/gluon-config-mode/generate/usr/lib/lua/luci/view/gluon-config-mode/reboot.htm b/gluon/gluon-config-mode/generate/usr/lib/lua/luci/view/gluon-config-mode/reboot.htm index 27be938..26a09a2 100644 --- a/gluon/gluon-config-mode/generate/usr/lib/lua/luci/view/gluon-config-mode/reboot.htm +++ b/gluon/gluon-config-mode/generate/usr/lib/lua/luci/view/gluon-config-mode/reboot.htm @@ -15,7 +15,7 @@ $Id$ - <%=luci.sys.hostname()%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %> + <%=hostname%> - <% if title then %><%=title%><% else %><%:Rebooting...%><% end %> @@ -28,7 +28,7 @@ $Id$ @config_mode.msg_pubkey@

- # <%=luci.sys.hostname()%> + # <%=hostname%>
<%=pubkey%>