summaryrefslogtreecommitdiffstats
path: root/source/installer/sources/dropbear/rc.dropbear.new
diff options
context:
space:
mode:
Diffstat (limited to 'source/installer/sources/dropbear/rc.dropbear.new')
-rw-r--r--source/installer/sources/dropbear/rc.dropbear.new3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/installer/sources/dropbear/rc.dropbear.new b/source/installer/sources/dropbear/rc.dropbear.new
index 3a695b811..987828e89 100644
--- a/source/installer/sources/dropbear/rc.dropbear.new
+++ b/source/installer/sources/dropbear/rc.dropbear.new
@@ -8,6 +8,9 @@ fi
dropbear_start() {
# Create host keys if needed.
+ if [ ! -f /etc/dropbear/dropbear_ecdsa_host_key ]; then
+ /bin/dropbearkey -t ecdsa -f /etc/dropbear/dropbear_ecdsa_host_key
+ fi
if [ ! -f /etc/dropbear/dropbear_rsa_host_key ]; then
/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
fi