print("MauMiner started") protocol = "mauminers" rednet.open("left") while true do local id, text = rednet.receive(protocol) if id == 4 then args = {} for word in text:gmatch("%w+") do table.insert(args, word) end if args[1] == "wget" then rednet.send(id, shell.run("wget", args[2], args[3]), protocol) elseif args[1] == "branchmine" then rednet.send(id, shell.run("branchmine", args[2], args[3]), protocol) elseif args[1] == "update" then shell.run("wget", "http://dl.maunium.net/cc/mauminer", "startup") rednet.send(id, "10", protocol) os.sleep(1) os.reboot() elseif args[1] == "reboot" then rednet.send(id, "10", protocol) os.reboot() elseif args[1] == "returntohome" then rednet.send(id, "293", protocol) rednet.close() shell.run("home") os.shutdown() end else rednet.send(id, "You are not authorized to use Mauminers!", protocol) end end