ssh ensure we create /run/dropbear

this is required if we don't have persistent store (jffs2)
This commit is contained in:
Daniel Barlow 2023-09-15 00:28:49 +01:00
parent f7b30939b5
commit 0abe4f96a7

View file

@ -35,6 +35,8 @@ longrun {
if test -d /persist; then
mkdir -p /persist/secrets/dropbear
ln -s /persist/secrets/dropbear /run
else
mkdir -p /run/dropbear
fi
. /etc/profile # sets PATH but do we need this? it's the same file as ashrc
exec env -i ENV=/etc/ashrc PATH=$PATH ${dropbear}/bin/dropbear ${concatStringsSep " " options}