Adapt to new modular config mode, add new reboot-ffhh package

this makes the old ffhh specific config mode obsolte, as only
a package (reboot-ffhh) is need to add the necessary information
to the reboot page
This commit is contained in:
ohrensessel 2014-08-07 18:06:14 +02:00
commit 918d892f15
10 changed files with 59 additions and 358 deletions

View file

@ -0,0 +1,22 @@
local msg = [[<p>
<%= luci.template.render_string(site.config_mode.msg_nopubkey) %>
</p>]]
local uci = luci.model.uci.cursor()
local meshvpn_enabled = uci:get("fastd", "mesh_vpn", "enabled", "0")
if meshvpn_enabled == "1" then
return nil
else
local site = require 'gluon.site_config'
local sysconfig = require 'gluon.sysconfig'
local hostname = uci:get_first("system", "system", "hostname")
return function ()
luci.template.render_string(msg, { hostname=hostname
, site=site
, sysconfig=sysconfig
})
end
end