From faf45b7316d4864d52bc3efb01c3b3c9d395b8e2 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Wed, 29 Sep 2010 07:54:53 +0000 Subject: dropbear: Add config options to allow specification of host key files, thanks Scott Merrilees and Matthias Buecher (#7824) SVN-Revision: 23148 --- package/dropbear/files/dropbear.init | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/dropbear') 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}" -- cgit v1.2.3