Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- DOS API (Doggy OS API)
- DOS = {}
- function DOS.Logout()
- shell.run("/disk/os/lock")
- end
- function DOS.Recovery()
- shell.run("/disk/boot/")
- end
- function DOS.Uninstall()
- fs.delete("/disk/")
- fs.delete("/recovery/")
- fs.delete("/startup")
- fs.delete("/no-os")
- fs.delete("/surface.lua")
- end
- function DOS.Kill()
- fs.delete("/startup")
- local newStartupContent = [[
- term.clear()
- term.setCursorPos(1,1)
- print("Device Blocked")
- print("Doggy OS API has been used to block this device")
- print("---------------------------------------------------")
- read()
- os.reboot()
- ]]
- local file = fs.open("/startup", "w")
- file.write(newStartupContent)
- file.close()
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement