# Auto-Update Startup Scripts These scripts automatically download and run the latest versions of your turtle control programs when computers start up. ## Installation ### For Turtles: ```lua wget https://git.spatulaa.com/MayaTheShy/remoteturtle/raw/branch/master/startup_turtle.lua startup ``` ### For Webbridge Computer: ```lua wget https://git.spatulaa.com/MayaTheShy/remoteturtle/raw/branch/master/startup_webbridge.lua startup ``` ### For Pocket Computer: ```lua wget https://git.spatulaa.com/MayaTheShy/remoteturtle/raw/branch/master/startup_pocket.lua startup ``` ## How It Works 1. **On boot**, the startup script runs automatically 2. **Removes** the old version of the main script 3. **Downloads** the latest version from git 4. **Executes** the downloaded script ## Fallback Behavior If the download fails (no internet, wrong URL, etc.): - Shows an error message - Attempts to run the existing version if available - Shows manual download instructions ## Benefits ✅ Always run the latest version ✅ No manual script management ✅ Just reboot to update ✅ Fallback to existing version if offline ✅ Clear status messages ## Manual Update To force an update on a running computer: ```lua reboot ``` ## Changing the URL If you need to change the git URL, edit the `SCRIPT_URL` variable in the startup script: ```lua local SCRIPT_URL = "https://your-git-url-here/script.lua" ``` ## Disabling Auto-Update To disable auto-update and use manual management: ```lua rm startup ``` Then download scripts manually as needed.