Skip to content

Commit

Permalink
Fixing issue by forthing reboot -f (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Niedermaier <[email protected]>
  • Loading branch information
mniedermaier and Matthias Niedermaier authored Sep 26, 2024
1 parent 3303b6f commit 89de716
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions software/installRPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ user_input=$(echo "$user_input" | tr '[:upper:]' '[:lower:]')
# Check the user input
if [[ "$user_input" == "yes" || "$user_input" == "y" ]]; then
echo -ne "${RED}# Restarting the raspberry pi ... \n${ENDCOLOR}"
ssh -t "$DEVICE_USER"@"$DEVICE_IP" sudo reboot || true
else
echo -ne "${GREEN}# done ... \n${ENDCOLOR}"
fi
ssh -t "$DEVICE_USER"@"$DEVICE_IP" sudo reboot -f || true
fi

echo -ne "${GREEN}# done ... \n${ENDCOLOR}"

0 comments on commit 89de716

Please sign in to comment.