summaryrefslogtreecommitdiff
path: root/package/dropbear
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-12-28 11:18:47 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-12-29 08:59:59 +0100
commit45ffda6ed1fd242e1ebdda812520daf131f72635 (patch)
tree1f054891b1f4aad2b9b50e800bae12b23efc0c09 /package/dropbear
parent139fa447cc994de6be5d87fbe41daae43d1d9c49 (diff)
dropbear: generate ed25519 key
Diffstat (limited to 'package/dropbear')
-rw-r--r--package/dropbear/Makefile2
-rw-r--r--package/dropbear/files/dropbear.init8
2 files changed, 9 insertions, 1 deletions
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 68f735451..970645ac8 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= dropbear
PKG_VERSION:= 2020.81
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_HASH:= 48235d10b37775dbda59341ac0c4b239b82ad6318c31568b985730c788aac53b
PKG_DESCR:= ssh server/client designed for embedded systems
PKG_SECTION:= net/security
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index 9bf74098e..15bb561df 100644
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -40,6 +40,14 @@ start)
echo "dropbear: key generation exited with code $?"
fi
fi
+ if test ! -f /etc/dropbear/dropbear_ed25519_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 (ED25519)"
+ /usr/bin/dropbearkey -f /etc/dropbear/dropbear_ed25519_host_key -t ed25519
+ echo "dropbear: key generation exited with code $?"
+ fi
+ fi
/usr/sbin/dropbear $dropbear_flags
;;
stop)