Skip to content

Commit

Permalink
initrd/bin/network-init-recovery: kill dropbear unconditionally prior…
Browse files Browse the repository at this point in the history
… of starting it

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
  • Loading branch information
tlaurion committed Feb 23, 2024
1 parent 2aeab5e commit ebe9db4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions initrd/bin/network-init-recovery
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit ebe9db4

Please sign in to comment.