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 <jonh.wend...@oiwifi.com.br>
Date: Thu, 6 Sep 2012 16:45:29 -0300
Subject: [PATCH] [package] dropbear: Supports IdleTimeout uci config option

Signed-off-by: Jonh Wendell <jonh.wend...@oiwifi.com.br>
---
 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
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to