From: florian Date: Tue, 16 Aug 2011 20:34:24 +0000 (+0000) Subject: [package] autossh: increase reliability of connection behavior X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=36a90ece499e7b4bf6f4ee1ac79a35ecaa2dee96;p=packages.git [package] autossh: increase reliability of connection behavior patch from Paul Geraedts git-svn-id: svn://svn.openwrt.org/openwrt/packages@28018 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/autossh/Makefile b/net/autossh/Makefile index c207ffe3e..c02c12d0b 100644 --- a/net/autossh/Makefile +++ b/net/autossh/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=autossh PKG_VERSION:=1.4b -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/ diff --git a/net/autossh/files/autossh.config b/net/autossh/files/autossh.config index 2e430a0d5..6ec323858 100644 --- a/net/autossh/files/autossh.config +++ b/net/autossh/files/autossh.config @@ -1,4 +1,5 @@ config autossh option ssh '-i /etc/dropbear/id_rsa -N -T -R 2222:localhost:22 user@host' + option gatetime '0' option monitorport '20000' option poll '600' diff --git a/net/autossh/files/autossh.init b/net/autossh/files/autossh.init index e873de807..d91c7b7ca 100644 --- a/net/autossh/files/autossh.init +++ b/net/autossh/files/autossh.init @@ -5,10 +5,11 @@ START=80 start_service () { local section="$1" config_get ssh "$section" ssh + config_get gatetime "$section" gatetime config_get monitorport "$section" monitorport config_get poll "$section" poll - AUTOSSH_POLL=${poll:-"600"} autossh -M ${monitorport:-"20000"} -f ${ssh} + AUTOSSH_GATETIME=${gatetime:-"30"} AUTOSSH_POLL=${poll:-"600"} autossh -M ${monitorport:-"20000"} -f ${ssh} } boot() {