From 5e6cfb3075d4abe391ea4f8217cebfa288429e39 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 2 Dec 2022 14:47:22 -0600 Subject: Fix case where files are not synced properly on first boot 1st noticed on MTCDT3AC after factory reset --- recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys b/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys index 4af8d5c..a276b6d 100644 --- a/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys +++ b/recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys @@ -60,7 +60,7 @@ HOST_KEYS=$(sed -n 's/^[ \t]*HostKey[ \t]\+\(.*\)/\1/p' "${sshd_config}") [ -z "${HOST_KEYS}" ] && HOST_KEYS="$SYSCONFDIR/ssh_host_rsa_key $SYSCONFDIR/ssh_host_dsa_key $SYSCONFDIR/ssh_host_ecdsa_key $SYSCONFDIR/ssh_host_ed25519_key" for key in ${HOST_KEYS} ; do - [ -f $key ] && continue + [ -s $key ] && continue case $key in *_rsa_key) echo " generating ssh RSA host key..." -- cgit v1.2.3