dropbear: Add config options to allow specification of host key files, thanks Scott...
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Wed, 29 Sep 2010 07:54:53 +0000 (07:54 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Wed, 29 Sep 2010 07:54:53 +0000 (07:54 +0000)
SVN-Revision: 23148

package/dropbear/files/dropbear.init

index 074df70d48a220b5eb304bf3aea28d74a74a80b2..aa7e07dd6d664626c8e6cca6ed7e5ac46926cdc1 100755 (executable)
@@ -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}"