mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
initrd/bin/network-init-recovery: kill dropbear unconditionally prior of starting it
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
2aeab5edbb
commit
ebe9db4350
@ -135,6 +135,11 @@ if [ -n "$dev" ]; then
|
|||||||
mkdir /etc/dropbear
|
mkdir /etc/dropbear
|
||||||
fi
|
fi
|
||||||
echo "Starting dropbear ssh server..."
|
echo "Starting dropbear ssh server..."
|
||||||
|
# Make sure dropbear is not already running
|
||||||
|
killall dropbear > /dev/null 2>&1 || true
|
||||||
|
# Start dropbear with root login and log to stderr
|
||||||
|
# -B background
|
||||||
|
# -R create host keys
|
||||||
dropbear -B -R
|
dropbear -B -R
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user