This patch increases the reliability of connection behavior considerably. It increases the persistence with which autossh tries to reconnect after an unsuccessful connection attempt.
Signed-off-by: Paul Geraedts <p.f.j.gerae...@gmail.com> --- Index: packages/net/autossh/files/autossh.init =================================================================== --- packages/net/autossh/files/autossh.init (revision 27687) +++ packages/net/autossh/files/autossh.init (working copy) @@ -5,10 +5,11 @@ 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() { Index: packages/net/autossh/files/autossh.config =================================================================== --- packages/net/autossh/files/autossh.config (revision 27687) +++ packages/net/autossh/files/autossh.config (working copy) @@ -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' Index: packages/net/autossh/Makefile =================================================================== --- packages/net/autossh/Makefile (revision 27687) +++ packages/net/autossh/Makefile (working copy) @@ -9,7 +9,7 @@ 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/ _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel