Browse Source

tinc: use 'uci_get_state' instead of 'uci -P /var/state get'

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
lilik-openwrt-22.03
Etienne Champetier 3 years ago
committed by Rosen Penev
parent
commit
440d3c0450
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/tinc/Makefile
  2. +1
    -1
      net/tinc/files/tinc.init

+ 1
- 1
net/tinc/Makefile View File

@ -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


+ 1
- 1
net/tinc/files/tinc.init View File

@ -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"
}


Loading…
Cancel
Save