summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dropbear/dropbear/init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/dropbear/dropbear/init')
-rwxr-xr-xmeta/recipes-core/dropbear/dropbear/init6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/dropbear/dropbear/init b/meta/recipes-core/dropbear/dropbear/init
index e882bae689..5cc2d656e8 100755
--- a/meta/recipes-core/dropbear/dropbear/init
+++ b/meta/recipes-core/dropbear/dropbear/init
@@ -58,9 +58,15 @@ gen_keys() {
58for t in $DROPBEAR_KEYTYPES; do 58for t in $DROPBEAR_KEYTYPES; do
59 case $t in 59 case $t in
60 rsa) 60 rsa)
61 if [ -f "$DROPBEAR_RSAKEY" -a ! -s "$DROPBEAR_RSAKEY" ]; then
62 rm $DROPBEAR_RSAKEY || true
63 fi
61 test -f $DROPBEAR_RSAKEY || dropbearkey -t rsa -f $DROPBEAR_RSAKEY 64 test -f $DROPBEAR_RSAKEY || dropbearkey -t rsa -f $DROPBEAR_RSAKEY
62 ;; 65 ;;
63 dsa) 66 dsa)
67 if [ -f "$DROPBEAR_DSSKEY" -a ! -s "$DROPBEAR_DSSKEY" ]; then
68 rm $DROPBEAR_DSSKEY || true
69 fi
64 test -f $DROPBEAR_DSSKEY || dropbearkey -t dss -f $DROPBEAR_DSSKEY 70 test -f $DROPBEAR_DSSKEY || dropbearkey -t dss -f $DROPBEAR_DSSKEY
65 ;; 71 ;;
66 esac 72 esac