From a8997d59b475b6a0f315dbe3e70749f15fbcbb1e Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Fri, 13 Mar 2020 10:22:37 +0200 Subject: [PATCH] Fix brainfart of disabling SSH and then SSH'ing over to poweroff. --- docs/image-setup.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/image-setup.sh b/docs/image-setup.sh index 4d4ba05..d5dd93c 100755 --- a/docs/image-setup.sh +++ b/docs/image-setup.sh @@ -251,11 +251,8 @@ rm temp working "Removing SSH host keys & enable regeneration" ssh "sudo rm -f -v /etc/ssh/ssh_host_*_key* && sudo systemctl enable regenerate_ssh_host_keys" -working "Removing temporary SSH pubkey & disabling SSH" -ssh "(echo > .ssh/authorized_keys) && sudo systemctl disable ssh" - -working "Powering off the Pi" -ssh "sudo poweroff" +working "Removing temporary SSH pubkey & disabling SSH & shutting down" +ssh "(echo > .ssh/authorized_keys) && sudo systemctl disable ssh && sudo nohup poweroff" question "Eject the SD card from the Pi, and mount it back to this computer" echo "(press enter when ready)"