From b89a0162ebe85699a0e1060f8ac94338d4402315 Mon Sep 17 00:00:00 2001
From: ohrensessel <git@ohrensessel.net>
Date: Sat, 7 Jun 2014 13:43:31 +0200
Subject: [PATCH] Allow sysconfig variable to be used on reboot page

---
 .../usr/lib/lua/luci/controller/gluon-config-mode/index.lua    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua b/package/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua
index 731ed73b4..d8b21b88e 100644
--- a/package/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua
+++ b/package/gluon-config-mode/files/usr/lib/lua/luci/controller/gluon-config-mode/index.lua
@@ -52,6 +52,7 @@ function action_reboot()
   local pubkey
   local uci = luci.model.uci.cursor()
   local meshvpn_enabled = uci:get("fastd", meshvpn_name, "enabled", "0")
+  local sysconfig = require 'gluon.sysconfig'
   if meshvpn_enabled == "1" then
     pubkey = configmode.get_fastd_pubkey(meshvpn_name)
   end
@@ -64,7 +65,7 @@ function action_reboot()
 
   if nixio.fork() ~= 0 then
     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
     debug.setfenv(io.stdout, debug.getfenv(io.open '/dev/null'))
     io.stdout:close()
-- 
GitLab