first commit

This commit is contained in:
pandacraft 2025-03-21 16:04:17 +01:00
commit a5a0434432
1126 changed files with 439481 additions and 0 deletions

27
Firmware/new_fw_search.sh Normal file
View file

@ -0,0 +1,27 @@
#! /bin/bash
printf "Welcome to GrovePi Firmware Update Check.\n=========================================\nPlease ensure internet connectivity before running this script.\n"
echo "Must be running as Root user"
echo "Press any key to begin..."
read
echo "Check for internet connectivity..."
echo "=================================="
wget -q --tries=2 --timeout=20 --output-document=/dev/null http://raspberrypi.org
if [[ $? -eq 0 ]];then
echo "Connected"
else
echo "Unable to Connect, try again !!!"
exit 0
fi
wget https://raw.github.com/DexterInd/GrovePi/master/Firmware/version.txt -O temp_f &>/dev/null
diff -q version.txt temp_f
if [[ $? == "0" ]]
then
echo "You have the latest firmware"
else
printf "\nNew firmware available. \n\nDownload the new version from Dexter Industries Github Repo and follow the update guide on the GrovePi Homepage to update the firmware.\n"
printf "\nTo download the latest firmware, simply open a terminal session, change directories to the Github on your Raspberry Pi, and type 'git remote update'. This will pull the latest files from Github. Then run this script again."
printf "\nSee the complete update guide here: http://www.dexterindustries.com/GrovePi/get-started-with-the-grovepi/updating-firmware/"
fi
rm temp_f