aboutsummaryrefslogtreecommitdiffstats
path: root/package/dropbear
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2010-09-29 07:54:53 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2010-09-29 07:54:53 +0000
commitf6859d097edeaf4535b4526545d478d5567c9f8e (patch)
tree96b2a1d863dc874324e065c2ade5087df1dc96ed /package/dropbear
parent579d2b4cdb85f9e02d88698842f7afd107605eea (diff)
downloadupstream-f6859d097edeaf4535b4526545d478d5567c9f8e.tar.gz
upstream-f6859d097edeaf4535b4526545d478d5567c9f8e.tar.bz2
upstream-f6859d097edeaf4535b4526545d478d5567c9f8e.zip
[pacakge] dropbear: Add config options to allow specification of host key files, thanks Scott Merrilees and Matthias Buecher (#7824)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23148 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dropbear')
-rwxr-xr-xpackage/dropbear/files/dropbear.init5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index 074df70d48..aa7e07dd6d 100755
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -52,6 +52,11 @@ dropbear_start()
# F) root login
config_get_bool val "${section}" RootLogin 1
[ "${val}" -eq 0 ] && append args "-w"
+ # G) host keys
+ config_get val "${section}" rsakeyfile
+ [ -f "${val}" ] && append args "-r ${val}"
+ config_get val "${section}" dsskeyfile
+ [ -f "${val}" ] && append args "-d ${val}"
# execute program and return its exit code
[ "${verbosed}" -ne 0 ] && echo "${initscript}: section ${section} starting ${PROG} ${args}"