mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 04:51:19 +08:00
Merge pull request #37 from xkstudio/dev
autossh: Sync source code from openwrt-snapshots and fix autostart error
This commit is contained in:
commit
43df654a8e
@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=autossh
|
||||
PKG_VERSION:=1.4e
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.4g
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
||||
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
|
||||
PKG_HASH:=9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156
|
||||
PKG_SOURCE_URL:=https://www.harding.motd.ca/autossh/
|
||||
PKG_HASH:=5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277
|
||||
PKG_LICENSE:=0BSD
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
@ -22,7 +22,7 @@ define Package/autossh
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Autossh client
|
||||
URL:=http://www.harding.motd.ca/autossh/
|
||||
URL:=https://www.harding.motd.ca/autossh/
|
||||
MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
|
||||
SUBMENU:=SSH
|
||||
endef
|
||||
|
@ -1,6 +1,6 @@
|
||||
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'
|
||||
option enabled '0'
|
||||
option ssh '-i /etc/dropbear/id_rsa -N -T -R 2222:localhost:22 user@host'
|
||||
option gatetime '0'
|
||||
option monitorport '20000'
|
||||
option poll '180'
|
||||
option enabled '0'
|
||||
|
@ -14,6 +14,8 @@ start_instance() {
|
||||
|
||||
[ "$enabled" = 1 ] || exit 0
|
||||
|
||||
export HOME=/root
|
||||
export AUTOSSH_PATH=ssh
|
||||
export AUTOSSH_GATETIME="${gatetime:-30}"
|
||||
export AUTOSSH_POLL="${poll:-600}"
|
||||
service_start /usr/sbin/autossh -M ${monitorport:-20000} -f ${ssh}
|
||||
|
Loading…
Reference in New Issue
Block a user