From 6bd0adf72728cc052736b2f261a7dfa5b6e3d632 Mon Sep 17 00:00:00 2001
From: Ben Oswald <ben.oswald@root-space.de>
Date: Fri, 25 Sep 2015 01:03:33 +0200
Subject: [PATCH] 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
---
 .../files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua       | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ffrn-gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua b/ffrn-gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua
index a5ee8c2..9bd3148 100644
--- a/ffrn-gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua
+++ b/ffrn-gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua
@@ -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
                                             })
-- 
GitLab