patch from Paul Geraedts
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28018
3c298f89-4303-0410-b956-
a3cf2f4a3e73
PKG_NAME:=autossh
PKG_VERSION:=1.4b
PKG_NAME:=autossh
PKG_VERSION:=1.4b
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
config autossh
option ssh '-i /etc/dropbear/id_rsa -N -T -R 2222:localhost:22 user@host'
config autossh
option ssh '-i /etc/dropbear/id_rsa -N -T -R 2222:localhost:22 user@host'
option monitorport '20000'
option poll '600'
option monitorport '20000'
option poll '600'
start_service () {
local section="$1"
config_get ssh "$section" ssh
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
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}