startup.lua
33 lines · 725 B
eHydra System Startup
Copy & run
wget https://perlytiara.github.io/turtles.tips/raw/programs/perlytiara/eHydra_wip/startup.lua
| 1 | -- eHydra System Startup |
| 2 | -- Quick access to eHydra tools |
| 3 | |
| 4 | print("eHydra System v1.0") |
| 5 | print("==================") |
| 6 | print("1. Auto-updater") |
| 7 | print("2. Batch updater") |
| 8 | print("3. Initialize turtle") |
| 9 | print("4. Deploy turtles") |
| 10 | print("5. Self-update eHydra") |
| 11 | print("6. Restore backups") |
| 12 | print("7. Exit") |
| 13 | print() |
| 14 | |
| 15 | write("Select tool [1-7]: ") |
| 16 | local choice = tonumber(read()) or 7 |
| 17 | |
| 18 | if choice == 1 then |
| 19 | shell.run("autoupdater") |
| 20 | elseif choice == 2 then |
| 21 | shell.run("batch_updater") |
| 22 | elseif choice == 3 then |
| 23 | shell.run("init") |
| 24 | elseif choice == 4 then |
| 25 | shell.run("turtle_deployer") |
| 26 | elseif choice == 5 then |
| 27 | shell.run("self_update") |
| 28 | elseif choice == 6 then |
| 29 | shell.run("restore_backups") |
| 30 | else |
| 31 | print("Goodbye!") |
| 32 | end |
| 33 |