forked from DGNum/liminix
ssh ensure we create /run/dropbear
this is required if we don't have persistent store (jffs2)
This commit is contained in:
parent
f7b30939b5
commit
0abe4f96a7
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ longrun {
|
||||||
if test -d /persist; then
|
if test -d /persist; then
|
||||||
mkdir -p /persist/secrets/dropbear
|
mkdir -p /persist/secrets/dropbear
|
||||||
ln -s /persist/secrets/dropbear /run
|
ln -s /persist/secrets/dropbear /run
|
||||||
|
else
|
||||||
|
mkdir -p /run/dropbear
|
||||||
fi
|
fi
|
||||||
. /etc/profile # sets PATH but do we need this? it's the same file as ashrc
|
. /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}
|
exec env -i ENV=/etc/ashrc PATH=$PATH ${dropbear}/bin/dropbear ${concatStringsSep " " options}
|
||||||
|
|
Loading…
Reference in a new issue