Added support for tunnels to multiple servers.

This commit is contained in:
Jernej Kos 2012-06-08 22:59:59 +02:00
parent c7d3aec3e9
commit 4c8ac4b392
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
START=90 START=90
tunnel_id=1
config_cb() { config_cb() {
local cfg="$CONFIG_SECTION" local cfg="$CONFIG_SECTION"
config_get configname "$cfg" TYPE config_get configname "$cfg" TYPE
@ -11,7 +13,8 @@ config_cb() {
config_get port "$cfg" port config_get port "$cfg" port
config_get uuid "$cfg" uuid config_get uuid "$cfg" uuid
config_get interface "$cfg" interface config_get interface "$cfg" interface
/usr/bin/tunneldigger -u ${uuid} -l 0.0.0.0 -b ${address} -p ${port} -i ${interface} & /usr/bin/tunneldigger -u ${uuid} -l 0.0.0.0 -b ${address} -p ${port} -i ${interface} -t ${tunnel_id} &
let tunnel_id++
;; ;;
esac esac
} }