[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-a3cf2f4a3e73master
parent
579d2b4cdb
commit
f6859d097e
|
@ -52,6 +52,11 @@ dropbear_start()
|
||||||
# F) root login
|
# F) root login
|
||||||
config_get_bool val "${section}" RootLogin 1
|
config_get_bool val "${section}" RootLogin 1
|
||||||
[ "${val}" -eq 0 ] && append args "-w"
|
[ "${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
|
# execute program and return its exit code
|
||||||
[ "${verbosed}" -ne 0 ] && echo "${initscript}: section ${section} starting ${PROG} ${args}"
|
[ "${verbosed}" -ne 0 ] && echo "${initscript}: section ${section} starting ${PROG} ${args}"
|
||||||
|
|
Loading…
Reference in New Issue