travelmate: update 2.1.2-6
authorDirk Brenken <dev@brenken.org>
Mon, 18 Mar 2024 21:09:09 +0000 (22:09 +0100)
committerDirk Brenken <dev@brenken.org>
Mon, 18 Mar 2024 21:09:51 +0000 (22:09 +0100)
* fix vpn semaphore handling (#23643), thanks to @brianjmurrell
* disable vpn processing by default

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/travelmate/Makefile
net/travelmate/files/travelmate.sh

index 971144b12a9dc7eeea29befde89d50212bb24795..8747c030b029bdd15e34360e16b92766351c17e2 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=travelmate
 PKG_VERSION:=2.1.2
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index 35a12c3305f037436334a4c0f87d2e14f2eb3451..39660dd81bf4c1e59f1a5198154da8b8e4c8f02d 100755 (executable)
@@ -14,7 +14,7 @@ trm_debug="0"
 trm_iface=""
 trm_captive="1"
 trm_proactive="1"
-trm_vpn="1"
+trm_vpn="0"
 trm_netcheck="0"
 trm_autoadd="0"
 trm_randomize="0"
@@ -233,9 +233,11 @@ f_vpn() {
                                        f_log "info" "take down openvpn instance '${vpn_instance}' (switch)"
                                        rc="1"
                                fi
-                               [ "${rc}" = "1" ] && break
+                               if [ "${rc}" = "1" ]; then
+                                       rm -f "${trm_vpnfile}"
+                                       break
+                               fi
                        done
-                       rm -f "${trm_vpnfile}"
                fi
                if [ -x "${trm_vpnpgm}" ] && [ -n "${vpn_service}" ] && [ -n "${vpn_iface}" ]; then
                        if { [ "${vpn_action}" = "disable" ] && [ -f "${trm_vpnfile}" ]; } ||