Advertisement
melzneni

sys2_toStartup

Feb 11th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. args = { ... }
  2.  
  3. if args[1] == nil then
  4.     print("no argument given")
  5. else
  6.     local f=fs.open("startup","w")
  7.     f.write("shell.run(\"delete\",\"unitHandler\")\n")
  8.     f.write("shell.run(\"pastebin\",\"get\",\"" .. args[1] .. "\",\"unitHandler\")\n")
  9.     f.write("shell.run(\"unitHandler\")\n")
  10.     f.close()
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement