diff options
author | John Klug <john.klug@multitech.com> | 2022-12-02 14:47:22 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-12-02 14:47:22 -0600 |
commit | 5e6cfb3075d4abe391ea4f8217cebfa288429e39 (patch) | |
tree | b7152e4727481bacaa424883c3130e6012ed0462 /recipes-connectivity | |
parent | 2f47ee6f284a906ecd8b2b29c30d7e4f3bb70d96 (diff) | |
download | meta-mlinux-5e6cfb3075d4abe391ea4f8217cebfa288429e39.tar.gz meta-mlinux-5e6cfb3075d4abe391ea4f8217cebfa288429e39.tar.bz2 meta-mlinux-5e6cfb3075d4abe391ea4f8217cebfa288429e39.zip |
Fix case where files are not synced properly on first boot 1st noticed on MTCDT3AC after factory reset
Diffstat (limited to 'recipes-connectivity')
-rw-r--r-- | recipes-connectivity/openssh/openssh-mlinux/sshd_check_keys | 2 |
1 files changed, 1 insertions, 1 deletions
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..." |