Commit Graph

11 Commits

Author SHA1 Message Date
kkubicki 278970f10c autossh: make forwarding optional
- previously localport option was required, which broke older configs
- now in-config forwarding is only optional
- ssh option still can be used for forwarding as in sample config

Signed-off-by: kkubicki <krzysiek.kubicki@gmail.com>
2024-02-07 14:11:35 -08:00
Jaymin Patel d71bea3f19 autossh: improve uci and procd support
- convert autossh into procd instances
- add new uci config options to handle local and remote
  port forwarding
- remove hotplug down actions causing service to stop on
  any interface down event

Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
2022-07-05 21:53:27 -07:00
Leo Soares 9c4d79519c autossh: fix procd env issue
This commit fixes an issue where the `AUTOSSH_GATETIME` is not available in the `procd`  environment which gets overwritten by the second `procd_set_param env` call.
It now calls the `procd_set_param env` once with the two variables, instead of twice.

Signed-off-by: Leo Soares <leo@hyper.ag>
2021-10-06 12:30:45 -07:00
Rosen Penev 63b7febf5f autossh: fix compilation without ssh installed
configure script looks for host ssh. Just pass the configure variable
directly. --with-ssh doesn't work.

Also get rid of custom Compile section. It's not needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-12 20:15:33 -07:00
Jan Pavlinec 7049b06130 autossh: switch to procd
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-08-31 07:05:12 -07:00
Rosen Penev 43988c17d6 autossh: Update to 1.4g
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-20 10:33:36 -08:00
Rosen Penev e227456efa
autossh: Update to 1.4f
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-07 18:17:49 -07:00
Adrià Llaudet af31a192f8 autossh: add an 'enabled' option within the uci configuration file
In a tool like this one, you really want an option to establish if the service
should start or not by default on boot time, especially when its configuration
file has to be customized by the user.

In the configuration file, the new 'enabled' option is setted to '0' by default
since the configuration provided by default will not be the one finally used.

In the init script, the new 'enabled' option is setted to '1' by default in
order to support the previous configuration file behaviour.

Signed-off-by: Adrià Llaudet <adria.llaudet@gmail.com>
2018-04-11 20:22:17 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Christian Beier 0faa7a2d2c
autossh: use version 1.4e, update Makefile
Signed-off-by: Christian Beier <cb@shoutrlabs.com>
2016-09-06 14:18:36 +02:00
Christian Beier 0648e9e71e
autossh: import from oldpackages
Signed-off-by: Christian Beier <cb@shoutrlabs.com>
2016-09-06 13:51:24 +02:00