mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
tinc: use 'uci_get_state' instead of 'uci -P /var/state get'
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
committed by
Rosen Penev
parent
555546e3d3
commit
440d3c0450
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user