From 3ad5f32bfe89be7e40e553d675c7c954930e53b3 Mon Sep 17 00:00:00 2001 From: tGecko Date: Fri, 12 Apr 2024 18:18:37 +0200 Subject: [PATCH] Fix SSH not connecting if key directory missing (#1493) If the directory `/mnt/SDCARD/.tmp_update/etc/dropbear` is missing, connecting via SSH fails because dropbear can't create it's host keys. Creates the directory if needed. Closes #1491 Co-authored-by: XK <47260768+XK9274@users.noreply.github.com> --- static/build/.tmp_update/script/network/update_networking.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/static/build/.tmp_update/script/network/update_networking.sh b/static/build/.tmp_update/script/network/update_networking.sh index 9dc9eccc07..06220a81ee 100644 --- a/static/build/.tmp_update/script/network/update_networking.sh +++ b/static/build/.tmp_update/script/network/update_networking.sh @@ -230,6 +230,7 @@ check_sshstate() { fi else if wifi_enabled; then + mkdir -p $sysdir/etc/dropbear sync if flag_enabled authsshState; then ssh_authed