summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorAlexander Dahl <ada@thorsis.com>2021-11-05 16:47:30 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-11-12 10:12:15 +0100
commit377f4c01cc541fcef039332ec1abf028b2b8bbea (patch)
tree7c8ec52b523d898e658b5b9ebc20f1b4bce08d60 /projectroot
parent29b74e865d10c82291e72fbf0dca1701bc5177bc (diff)
downloadptxdist-377f4c01cc541fcef039332ec1abf028b2b8bbea.tar.gz
ptxdist-377f4c01cc541fcef039332ec1abf028b2b8bbea.tar.xz
dropbear: Move KEYTYPES to shell lib and set based on menu
The variable is currently not used, but it will be useful later for key generation and daemon startup based on actually selected host key types. Signed-off-by: Alexander Dahl <ada@thorsis.com> Message-Id: <20211105154734.19983-5-ada@thorsis.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/etc/init.d/dropbear2
-rw-r--r--projectroot/usr/lib/init/dropbear.sh1
2 files changed, 1 insertions, 2 deletions
diff --git a/projectroot/etc/init.d/dropbear b/projectroot/etc/init.d/dropbear
index b394eab15..15671c9d8 100644
--- a/projectroot/etc/init.d/dropbear
+++ b/projectroot/etc/init.d/dropbear
@@ -13,8 +13,6 @@ DROPBEAR_EXTRA_ARGS=
test -z "$DROPBEAR_BANNER" || \
DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER"
-test -n "$DROPBEAR_KEYTYPES" || \
- DROPBEAR_KEYTYPES="rsa"
dropbear_start() {
diff --git a/projectroot/usr/lib/init/dropbear.sh b/projectroot/usr/lib/init/dropbear.sh
index 7b94429b4..f4a083b8c 100644
--- a/projectroot/usr/lib/init/dropbear.sh
+++ b/projectroot/usr/lib/init/dropbear.sh
@@ -1,3 +1,4 @@
#!/bin/sh
DROPBEAR_RSAKEY='@KEYDIR@/dropbear_rsa_host_key'
+DROPBEAR_KEYTYPES='@KEYTYPES@'