Skip to content
Snippets Groups Projects
Commit 6bd0adf7 authored by Ben Oswald's avatar Ben Oswald
Browse files

we don't neet to get the primary mac on our own

we can get the prmary mac from the sysconfig object in the i18n template
parent 651f06bc
No related branches found
No related tags found
No related merge requests found
......@@ -11,15 +11,12 @@ else
local pubkey = util.trim(util.exec("/etc/init.d/fastd show_key " .. "mesh_vpn"))
local hostname = uci:get_first("system", "system", "hostname")
local mac = sysconfig.primary_mac
local msg = i18n.translate('gluon-config-mode:pubkey')
return function ()
luci.template.render_string(msg, { pubkey=pubkey
, hostname=hostname
, mac=mac
, site=site
, sysconfig=sysconfig
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment