summaryrefslogtreecommitdiff
path: root/package/dropbear/files
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-09-29 07:54:53 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-09-29 07:54:53 +0000
commitfaf45b7316d4864d52bc3efb01c3b3c9d395b8e2 (patch)
tree0f7e90f33279865971b64f6510d5d358ae38b574 /package/dropbear/files
parent8511c6b16c6c7df587bc2f7f58e935c12918e51c (diff)
downloadmtk-20170518-faf45b7316d4864d52bc3efb01c3b3c9d395b8e2.zip
mtk-20170518-faf45b7316d4864d52bc3efb01c3b3c9d395b8e2.tar.gz
mtk-20170518-faf45b7316d4864d52bc3efb01c3b3c9d395b8e2.tar.bz2
dropbear: Add config options to allow specification of host key files, thanks Scott Merrilees and Matthias Buecher (#7824)
SVN-Revision: 23148
Diffstat (limited to 'package/dropbear/files')
-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 074df70..aa7e07d 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}"