Skip to content
Snippets Groups Projects
Commit b89a0162 authored by ohrensessel's avatar ohrensessel
Browse files

Allow sysconfig variable to be used on reboot page

parent 68149f25
Branches
Tags
No related merge requests found
...@@ -52,6 +52,7 @@ function action_reboot() ...@@ -52,6 +52,7 @@ function action_reboot()
local pubkey local pubkey
local uci = luci.model.uci.cursor() local uci = luci.model.uci.cursor()
local meshvpn_enabled = uci:get("fastd", meshvpn_name, "enabled", "0") local meshvpn_enabled = uci:get("fastd", meshvpn_name, "enabled", "0")
local sysconfig = require 'gluon.sysconfig'
if meshvpn_enabled == "1" then if meshvpn_enabled == "1" then
pubkey = configmode.get_fastd_pubkey(meshvpn_name) pubkey = configmode.get_fastd_pubkey(meshvpn_name)
end end
...@@ -64,7 +65,7 @@ function action_reboot() ...@@ -64,7 +65,7 @@ function action_reboot()
if nixio.fork() ~= 0 then if nixio.fork() ~= 0 then
luci.template.render("gluon-config-mode/reboot", luci.template.render("gluon-config-mode/reboot",
{luci=luci, pubkey=pubkey, hostname=hostname, site=site}) {luci=luci, pubkey=pubkey, hostname=hostname, site=site, sysconfig=sysconfig})
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment