Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local shell = require("shell");
- local args = {...};
- local runProg = true;
- if args[1] == "-i" then
- os.execute("pastebin run k10a9mDV");
- elseif args[1] == "dir" then
- shell.setWorkingDirectory("/usr/CM_Automator/");
- runProg = false;
- elseif args[1] == "-r" then
- print("Resetting all data.");
- os.execute("rm /usr/CM_Automator/data.dat");
- end
- if runProg then
- shell.setWorkingDirectory("/usr/CM_Automator/");
- os.execute("/usr/CM_Automator/main.lua");
- end
Advertisement
Add Comment
Please, Sign In to add comment