Hi, I just rebased against trunk and changed the patch to use procd as well.
From: Jonh Wendell <[email protected]> Date: Thu, 6 Sep 2012 16:45:29 -0300 Subject: [PATCH] [package] dropbear: Supports IdleTimeout uci config option Signed-off-by: Jonh Wendell <[email protected]> --- package/network/services/dropbear/files/dropbear.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init index 66ed8b9..3ef4cec 100755 --- a/package/network/services/dropbear/files/dropbear.init +++ b/package/network/services/dropbear/files/dropbear.init @@ -82,6 +82,9 @@ dropbear_instance() [ -f "${val}" ] && procd_append_param command -r "${val}" config_get val "${section}" dsskeyfile [ -f "${val}" ] && procd_append_param command -d "${val}" + # H) idle timeout + config_get val "${section}" IdleTimeout 0 + [ "${val}" -ne 0 ] && procd_append_param command "-I ${val}" procd_close_instance } -- 1.7.10.4 2012/9/6 Jonh Wendell <[email protected]> > Once this patch is accepted, I'll update the wiki page > http://wiki.openwrt.org/doc/uci/dropbear > > From 9509ba3a76b014155671cbea72a07caafaf27970 Mon Sep 17 00:00:00 2001 > From: Jonh Wendell <[email protected]> > Date: Thu, 6 Sep 2012 16:45:29 -0300 > Subject: [PATCH] [package] dropbear: Supports IdleTimeout uci config option > > Signed-off-by: Jonh Wendell <[email protected]> > --- > package/dropbear/files/dropbear.init | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/package/dropbear/files/dropbear.init > b/package/dropbear/files/dropbear.init > index c909d28..5c03b32 100755 > --- a/package/dropbear/files/dropbear.init > +++ b/package/dropbear/files/dropbear.init > @@ -81,6 +81,9 @@ dropbear_start() > [ -f "${val}" ] && append args "-r ${val}" > config_get val "${section}" dsskeyfile > [ -f "${val}" ] && append args "-d ${val}" > + # H) idle timeout > + config_get val "${section}" IdleTimeout 0 > + [ "${val}" -ne 0 ] && append args "-I ${val}" > > # execute program and return its exit code > [ "${verbosed}" -ne 0 ] && echo "${initscript}: section ${section} > starting ${PROG} ${args}" > -- > 1.7.9.5 > > > -- > Jonh Wendell > http://www.bani.com.br > > -- Jonh Wendell http://www.bani.com.br
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
