Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local filesystem = require("filesystem");
- local computer = require("computer");
- print("Beginning Installer.");
- if not filesystem.isDirectory("/usr/CM_Automator") then
- print("Directory could not be located. Creating.");
- local success = filesystem.makeDirectory("/usr/CM_Automator");
- if success then
- print("Directory created successfully!");
- else
- print("Error! Could not create directory. Aborting.");
- os.exit();
- end
- success = nil;
- else
- print("Directory already exists. Presumed to be update or repair.");
- end
- print("Installing Main Program");
- os.execute("pastebin get -f 2UTfqP04 /usr/CM_Automator/main.lua");
- print("Installing Wrapper");
- os.execute("pastebin get -f BDHys8Au /bin/cmauto.lua");
- print("Setting up wrapper");
- local file = io.open("/autorun.lua", "w");
- file:write("os.execute(\"cmauto\")");
- file:close();
- computer.shutdown(true);
Advertisement
Add Comment
Please, Sign In to add comment