X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/db4dc9eb53447a9974d38205316774cb2d4f4094..271da7f4e93492f377c0fcf25def4591d60b9fbc:/package/dropbear/files/dropbear.init?ds=sidebyside diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index 074df70d4..aa7e07dd6 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}"