summaryrefslogtreecommitdiff
path: root/package/dropbear/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-17 14:52:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-17 14:52:41 +0100
commit3c6c798f370ae4af877fe3eed9728f9bb48f9bef (patch)
tree979d7a5e6f9fef823077742e781b23521c332061 /package/dropbear/files
parent2975c1ab583edcfbb46626f003867738fcb0b556 (diff)
add ecdsa key generation
Diffstat (limited to 'package/dropbear/files')
-rw-r--r--package/dropbear/files/dropbear.init8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index 11b91db49..955ae33c3 100644
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -31,6 +31,14 @@ start)
echo "dropbear: key generation exited with code $?"
fi
fi
+ if test ! -f /etc/dropbear/dropbear_ecdsa_host_key; then
+ # take it easy here, since above already catched the worst cases
+ if test -x /usr/bin/dropbearkey; then
+ echo "dropbear: generating SSH private key (ECDSA)"
+ /usr/bin/dropbearkey -f /etc/dropbear/dropbear_ecdsa_host_key -t ecdsa
+ echo "dropbear: key generation exited with code $?"
+ fi
+ fi
/usr/sbin/dropbear $dropbear_flags
;;
stop)