Skip to content

Instantly share code, notes, and snippets.

@leonheldattoradex
Last active October 16, 2024 11:53
Show Gist options
  • Save leonheldattoradex/c65a856ec961b437c9abd092939febe9 to your computer and use it in GitHub Desktop.
Save leonheldattoradex/c65a856ec961b437c9abd092939febe9 to your computer and use it in GitHub Desktop.
Recovery script to load Toradex Easy Installer (Tezi) images from Mac OS
#!/bin/sh
# Download Tezi from https://developer.toradex.com/easy-installer/toradex-easy-installer/download-tezi#latest-release
# Unzip it, copy this script to the unzipped directory and run as `bash recovery-mac.sh`, following the usual way to
# put your board in recovery mode
# Check if uuu is installed
if ! command -v uuu > /dev/null; then
echo "Error: uuu is not installed. Please install uuu using brew (https://brew.sh/) before running this script."
exit 1
fi
# Use uuu
echo "Downloading Toradex Easy Installer..."
if [ "$1" = "-q" ]; then
sudo uuu recovery > /dev/null
else
sudo uuu recovery
fi
if [ $? != 0 ]; then
echo ""
printf "\033[31mDownloading Toradex Easy Installer failed...\033[0m\n"
exit 1
fi
printf "\033[32mSuccessfully downloaded Toradex Easy Installer.\033[0m\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment