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:
Thierry Laurion 2024-02-23 12:17:47 -05:00
parent 2aeab5edbb
commit ebe9db4350
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461

View File

@ -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 ""