From edbd2a0d3fddfd4af8a8e43e7804b75b075f5dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Fri, 15 Apr 2022 04:49:09 +0200 Subject: [PATCH] mesh-vpn-openvpn: misc stuff --- package/gluon-mesh-vpn-openvpn/Makefile | 2 +- .../luasrc/lib/gluon/upgrade/400-mesh-vpn-openvpn | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package/gluon-mesh-vpn-openvpn/Makefile b/package/gluon-mesh-vpn-openvpn/Makefile index bf2c0f73..fede4cda 100644 --- a/package/gluon-mesh-vpn-openvpn/Makefile +++ b/package/gluon-mesh-vpn-openvpn/Makefile @@ -7,7 +7,7 @@ include ../gluon.mk define Package/gluon-mesh-vpn-openvpn TITLE:=Support for connecting meshes via custom openvpn configuration - DEPENDS:=+gluon-core +gluon-mesh-vpn-core +openvpn + DEPENDS:=+gluon-core +gluon-mesh-vpn-core +openvpn +lua-openssl endef $(eval $(call BuildPackageGluon,gluon-mesh-vpn-openvpn)) diff --git a/package/gluon-mesh-vpn-openvpn/luasrc/lib/gluon/upgrade/400-mesh-vpn-openvpn b/package/gluon-mesh-vpn-openvpn/luasrc/lib/gluon/upgrade/400-mesh-vpn-openvpn index aa7e5e4c..f2dd5f61 100755 --- a/package/gluon-mesh-vpn-openvpn/luasrc/lib/gluon/upgrade/400-mesh-vpn-openvpn +++ b/package/gluon-mesh-vpn-openvpn/luasrc/lib/gluon/upgrade/400-mesh-vpn-openvpn @@ -8,8 +8,11 @@ local uci = require('simple-uci').cursor() -- https://stackoverflow.com/a/4991602/3990041 local function file_exists(name) - local f=io.open(name,"r") - if f~=nil then io.close(f) return true else return false end + local f = io.open(name, 'r') + if f ~= nil then + io.close(f) + return true else return false + end end local vpn = {