From bd0670c979a7872c9c40197cbaf47e0122038d88 Mon Sep 17 00:00:00 2001 From: Jernej Kos Date: Wed, 11 Jul 2012 20:33:11 +0200 Subject: [PATCH] Updated package to latest tunneldigger version. --- package/tunneldigger/Makefile | 4 ++-- package/tunneldigger/files/config.default | 4 +++- package/tunneldigger/files/tunneldigger.init | 10 ++++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package/tunneldigger/Makefile b/package/tunneldigger/Makefile index 452a1381..e709f3a1 100644 --- a/package/tunneldigger/Makefile +++ b/package/tunneldigger/Makefile @@ -1,8 +1,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tunneldigger -PKG_VERSION:=0.1 -PKG_RELEASE:=2 +PKG_VERSION:=0.2 +PKG_RELEASE:=1 PKG_REV:=HEAD PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 diff --git a/package/tunneldigger/files/config.default b/package/tunneldigger/files/config.default index b1a3175b..3dd7747e 100644 --- a/package/tunneldigger/files/config.default +++ b/package/tunneldigger/files/config.default @@ -1,6 +1,8 @@ config broker option address 'x.y.z.w' - option port 53 + list port 8942 + list port 53 + list port 123 option uuid 'abcd' option interface 'l2tp0' diff --git a/package/tunneldigger/files/tunneldigger.init b/package/tunneldigger/files/tunneldigger.init index f495db2a..a2bc4a46 100644 --- a/package/tunneldigger/files/tunneldigger.init +++ b/package/tunneldigger/files/tunneldigger.init @@ -10,10 +10,16 @@ config_cb() { case "$configname" in broker) config_get address "$cfg" address - config_get port "$cfg" port + config_get ports "$cfg" port config_get uuid "$cfg" uuid config_get interface "$cfg" interface - /usr/bin/tunneldigger -u ${uuid} -l 0.0.0.0 -b ${address} -p ${port} -i ${interface} -t ${tunnel_id} & + + local broker_opts="" + for port in $ports; do + broker_opts="${broker_opts} -b ${address}:${port}" + done + + /usr/bin/tunneldigger -u ${uuid} -i ${interface} -t ${tunnel_id} ${broker_opts} & let tunnel_id++ ;; esac