Advertisement
Wihad

OC Miner Installer

Jul 30th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --to config the system to start the program automatically
  2.  
  3. --this file /home/.shrc will autorun programs added after boot.
  4. local conf= io.open(".shrc","w")
  5. conf:write("/home/installer.lua")
  6. conf:close()
  7.  
  8. local inst=io.open("installer.lua","w")
  9. inst:write("local component=require('component')\n if component.isAvailable('internet') then\n os.execute('rm Miner.lua')\n os.execute('pastebin get wexmYA7C Miner.lua') end\n os.execute('Miner.lua')")
  10. inst:close()
  11.  
  12. os.execute("installer.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement