From 440d3c04505719df09e39706e6af7c470a49d458 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Thu, 12 Aug 2021 16:41:05 -0400 Subject: [PATCH] tinc: use 'uci_get_state' instead of 'uci -P /var/state get' Signed-off-by: Etienne Champetier --- net/tinc/Makefile | 2 +- net/tinc/files/tinc.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/tinc/Makefile b/net/tinc/Makefile index 945693925f..54936d19af 100644 --- a/net/tinc/Makefile +++ b/net/tinc/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tinc PKG_VERSION:=1.1-git -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=http://tinc-vpn.org/git/tinc diff --git a/net/tinc/files/tinc.init b/net/tinc/files/tinc.init index af2c3bcac0..ba2134fe0f 100644 --- a/net/tinc/files/tinc.init +++ b/net/tinc/files/tinc.init @@ -61,7 +61,7 @@ append_conf_params() { for v in $v; do # Look up OpenWRT interface names [ "$p" = "BindToInterface" ] && { - local ifname=$(uci -P /var/state get network.$v.ifname 2>&-) + local ifname=$(uci_get_state network "$v" ifname "") [ -n "$ifname" ] && v="$ifname" } -- 2.30.2