dropbear: Deal with truncated host keys by removing them
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Fri, 18 Jan 2013 14:47:34 +0000 (15:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Jan 2013 12:58:58 +0000 (12:58 +0000)
commitf42eaa16b840d998a859843ffc7dfe96babd1e95
treee2bb8176a32cee083df13f7a6d5647e1564643e7
parent65faf462fdded31482f65a084549f89dd380c9a5
dropbear: Deal with truncated host keys by removing them

Dropbear does not start when the host key is empty and it is possible
that a device is switched off before the host key is generated. This
is possible because the dropbearkey code doesn't create a temporary
file first. Detect truncated keys and then remove them which will lead
to the re-generation. This way the dropbear process will always start.

(From OE-Core rev: 16b57e352f5844f301cc6c7ea4f87bf750c11d67)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/dropbear/dropbear.inc
meta/recipes-core/dropbear/dropbear/init