tunneldigger: Allow logical interface names.

This commit is contained in:
Jernej Kos 2015-09-30 13:14:38 +02:00
parent ba1458bc87
commit 5725320cdc
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=tunneldigger
PKG_VERSION:=0.4.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_REV:=42288abb57261e07491a8233fec2e0741dcb8d52
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2

View File

@ -1,5 +1,7 @@
#!/bin/sh /etc/rc.common
. $IPKG_INSTROOT/lib/functions/network.sh
START=90
PIDPATH=/var/run
@ -31,7 +33,12 @@ config_cb() {
[ ! -z "${limit_bw_down}" ] && append broker_opts "-L ${limit_bw_down}"
[ ! -z "${hook_script}" ] && append broker_opts "-s ${hook_script}"
[ ! -z "${bind_interface}" ] && append broker_opts "-I ${bind_interface}"
[ ! -z "${bind_interface}" ] && {
# Resolve logical interface name.
unset _bind_interface
network_get_device _bind_interface "${bind_interface}" || _bind_interface="${bind_interface}"
append broker_opts "-I ${_bind_interface}"
}
if [ -z "$uuid" ]; then
missing uuid