mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47: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
|
||||
fi
|
||||
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
|
||||
fi
|
||||
echo ""
|
||||
|
Loading…
Reference in New Issue
Block a user