From 03c53867cb8e198f3d69f387277627c94fb83901 Mon Sep 17 00:00:00 2001
From: Andreas Thienemann <andr...@bawue.net>
Date: Fri, 28 Mar 2014 17:18:57 +0100
Subject: [PATCH] [packages] sshtunnel: Make the tunnelW setting for sshtunnel actually work.

Currently everything needed is in the script except the config is never actually loaded.
Fixed with this commit.

Signed-off-by: Andreas Thienemann <andr...@bawue.net>
---
 net/sshtunnel/files/sshtunnel.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sshtunnel/files/sshtunnel.init b/net/sshtunnel/files/sshtunnel.init
index 4ca491f..e44796b 100644
--- a/net/sshtunnel/files/sshtunnel.init
+++ b/net/sshtunnel/files/sshtunnel.init
@@ -150,7 +150,7 @@ load_server() {
         ARGS_tunnels=""

        count=0
- config_foreach load_tunnelR tunnelR && config_foreach load_tunnelL tunnelL && config_foreach load_tunnelD tunnelD + config_foreach load_tunnelR tunnelR && config_foreach load_tunnelL tunnelL && config_foreach load_tunnelD tunnelD && config_foreach load_tunnelW tunnelW [ -n "$error" ] && { logger -p user.err -t "sshtunnel" "tunnels to $server not started - $error"; return; } [ "$count" -eq 0 ] && { logger -p user.err -t "sshtunnel" "tunnels to $server not started - no tunnels defined"; return; }

--
1.8.5.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to