Browse Source

Merge pull request #5896 from allaudet/improve-autossh-config

autossh: add an 'enabled' option within the uci configuration file
lilik-openwrt-22.03
Dirk Brenken 7 years ago
committed by GitHub
parent
commit
c750f17fff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions
  1. +1
    -1
      net/autossh/Makefile
  2. +1
    -0
      net/autossh/files/autossh.config
  3. +1
    -1
      net/autossh/files/autossh.hotplug
  4. +3
    -0
      net/autossh/files/autossh.init

+ 1
- 1
net/autossh/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=autossh
PKG_VERSION:=1.4e
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/


+ 1
- 0
net/autossh/files/autossh.config View File

@ -3,3 +3,4 @@ config autossh
option gatetime '0'
option monitorport '20000'
option poll '600'
option enabled '0'

+ 1
- 1
net/autossh/files/autossh.hotplug View File

@ -10,5 +10,5 @@
[ "$ACTION" = "ifdown" ] && {
/etc/init.d/autossh stop
}
}

+ 3
- 0
net/autossh/files/autossh.init View File

@ -10,6 +10,9 @@ start_instance() {
config_get gatetime "$section" 'gatetime'
config_get monitorport "$section" 'monitorport'
config_get poll "$section" 'poll'
config_get_bool enabled "$section" 'enabled' '1'
[ "$enabled" = 1 ] || exit 0
export AUTOSSH_GATETIME="${gatetime:-30}"
export AUTOSSH_POLL="${poll:-600}"


Loading…
Cancel
Save