Advertisement
Corbinhol

Startup Boilerplate

Feb 27th, 2023
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local computer = require("computer");
  2. local filesystem = require("filesystem");
  3. shell.execute("/start.lua");
  4. loop = true;
  5. while loop do
  6.     if filesystem.exists("/startup.lua") then
  7.         shell.execute("/startup.lua");
  8.     else
  9.         loop = false;
  10.         print("startup.lua doesn't exist. Killing Loop.")
  11.     end
  12. end
  13. print("Startup Loop Ended.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement