#!/bin/bash # Fastboot Flash Script for BBeOS # Flashes the boot image to device via fastboot echo "Flashing BBeOS boot image..." # Check if fastboot is available if ! command -v fastboot &> /dev/null; then echo "Error: fastboot not found" echo "Please install Android tools: sudo apt install android-tools-fastboot" exit 1 fi # Check if device is connected if ! fastboot devices | grep -q .; then echo "Error: No fastboot device found" echo "Please connect device in fastboot mode" exit 1 fi # Flash boot image echo "Flashing boot image..." fastboot flash boot bbeos-boot.img # Reboot device echo "Rebooting device..." fastboot reboot echo "Flash complete!"