tinc: fix regression bring by commit fd61f2d

Signed-off-by: Erwan MAS <erwan@mas.nom.fr>
This commit is contained in:
Erwan MAS
2024-06-23 16:27:39 -04:00
committed by Rosen Penev
parent 81654c6570
commit 65fc6ccb06
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=tinc PKG_NAME:=tinc
PKG_VERSION:=1.1pre18 PKG_VERSION:=1.1pre18
PKG_RELEASE:=3 PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://tinc-vpn.org/packages PKG_SOURCE_URL:=https://tinc-vpn.org/packages

View File

@@ -249,7 +249,10 @@ start_instance() {
append_params "$s" logfile debug append_params "$s" logfile debug
SERVICE_PID_FILE="/var/run/tinc.$s.pid" SERVICE_PID_FILE="/var/run/tinc.$s.pid"
service_start $BIN -c "$TMP_TINC/$s" $ARGS --pidfile="$SERVICE_PID_FILE" # consequences of option -n "%s"
# tinc will display this warning Both netname and configuration directory given, using the latter...
# BUT the exported variable NETNAME will be set with the right value when run tinc-up script
service_start $BIN -c "$TMP_TINC/$s" -n "$s" $ARGS --pidfile="$SERVICE_PID_FILE"
} }
stop_instance() { stop_instance() {