From 128875aa67c378dd065582220980df9cfd4576a7 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 17 Dec 2024 21:13:32 +0100 Subject: [PATCH] travelmate: update to 2.1.3-3 * properly escape double quotes in travelmate option values * minor procd tweaks Signed-off-by: Dirk Brenken --- net/travelmate/Makefile | 2 +- net/travelmate/files/travelmate.init | 4 ++-- net/travelmate/files/travelmate.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/travelmate/Makefile b/net/travelmate/Makefile index 361e793438..dfaf419ef3 100644 --- a/net/travelmate/Makefile +++ b/net/travelmate/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=travelmate PKG_VERSION:=2.1.3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/travelmate/files/travelmate.init b/net/travelmate/files/travelmate.init index 4a7dbf2609..37b301950a 100755 --- a/net/travelmate/files/travelmate.init +++ b/net/travelmate/files/travelmate.init @@ -33,8 +33,8 @@ start_service() { procd_set_param command "${trm_script}" "${@}" procd_set_param pidfile "${trm_pidfile}" procd_set_param nice "$(uci_get travelmate global trm_nice "0")" - procd_set_param stdout 1 - procd_set_param stderr 1 + procd_set_param stdout 0 + procd_set_param stderr 0 procd_close_instance fi } diff --git a/net/travelmate/files/travelmate.sh b/net/travelmate/files/travelmate.sh index 5e32379ec1..442918d6b8 100755 --- a/net/travelmate/files/travelmate.sh +++ b/net/travelmate/files/travelmate.sh @@ -84,11 +84,11 @@ f_env() { if [ "${name}" = "travelmate" ] && [ "${type}" = "global" ]; then option_cb() { - local option="${1}" value="${2}" + local option="${1}" value="${2//\"/\\\"}" eval "${option}=\"${value}\"" } list_cb() { - local option="${1}" value="${2}" + local option="${1}" value="${2//\"/\\\"}" if [ "${option}" = "trm_vpnifacelist" ] && ! printf "%s" "${trm_vpnifacelist}" | "${trm_grepcmd}" -q "${value}"; then eval "trm_vpnifacelist=\"$(printf "%s" "${trm_vpnifacelist}") ${value}\"" fi -- 2.30.2