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:
parent
555546e3d3
commit
440d3c0450
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=tinc
|
PKG_NAME:=tinc
|
||||||
PKG_VERSION:=1.1-git
|
PKG_VERSION:=1.1-git
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=http://tinc-vpn.org/git/tinc
|
PKG_SOURCE_URL:=http://tinc-vpn.org/git/tinc
|
||||||
|
|
|
@ -61,7 +61,7 @@ append_conf_params() {
|
||||||
for v in $v; do
|
for v in $v; do
|
||||||
# Look up OpenWRT interface names
|
# Look up OpenWRT interface names
|
||||||
[ "$p" = "BindToInterface" ] && {
|
[ "$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"
|
[ -n "$ifname" ] && v="$ifname"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue