From c4f7a52621bd70d15329f59eb23a3c49b3c42f29 Mon Sep 17 00:00:00 2001
From: bjoern <bdobe@users.noreply.github.com>
Date: Fri, 10 Apr 2015 23:00:13 +0200
Subject: [PATCH] gluon-config-mode-mesh-vpn: Remove trailing newline from
 pubkey variable in 0100-mesh-vpn.lua

---
 .../files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua b/package/gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua
index dbb93b11d..1b32c7311 100644
--- a/package/gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua
+++ b/package/gluon-config-mode-mesh-vpn/files/lib/gluon/config-mode/reboot/0100-mesh-vpn.lua
@@ -9,7 +9,7 @@ else
   local site = require 'gluon.site_config'
   local sysconfig = require 'gluon.sysconfig'
 
-  local pubkey = util.exec("/etc/init.d/fastd show_key " .. "mesh_vpn")
+  local pubkey = util.trim(util.exec("/etc/init.d/fastd show_key " .. "mesh_vpn"))
   local hostname = uci:get_first("system", "system", "hostname")
 
   local msg = [[<p>]] .. i18n.translate('gluon-config-mode:pubkey') .. [[</p>
-- 
GitLab