Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = "password"
- print(" Meep Security v1.0.0 ")
- print("+----------------------+")
- print("| Username: |")
- print("| Password: |")
- print("+----------------------+")
- term.setCursorPos(14,3)
- print("Meep")
- term.setCursorPos(14,4)
- pt = read("*")
- if pt == (p) then
- term.setCursorPos(1,6)
- print("Logging in"); term.setCursorPos(11,6); textutils.slowPrint("...",1)
- term.setCursorPos(1,7)
- sleep(2)
- print("Login succesful!")
- sleep(1)
- print("Welcome user!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print("Starting odd OS"); term.setCursorPos(16,1); textutils.slowPrint("...",1)
- term.setCursorPos(1,2)
- print("Reading Files"); term.setCursorPos(14,2); textutils.slowPrint("...",1)
- term.setCursorPos(1,3)
- print("Clearing Cache"); term.setCursorPos(15,3); textutils.slowPrint("...",1)
- term.setCursorPos(1,4)
- print("Startup Succesful!")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("MeepOS v1.4.5")
- term.setCursorPos(1,2)
- elseif pt == "32641" then
- write("Admin Mode")
- else
- term.setCursorPos(1,6)
- print("Logging in"); term.setCursorPos(11,6); textutils.slowPrint("...",1)
- term.setCursorPos(1,7)
- print("Incorrect Password! Shutting Down"); term.setCursorPos(34,7); textutils.slowPrint("...",1)
- os.reboot()
- end
- local tArgs = { ... }
- if #tArgs < 1 then
- print("Useage: rm <path>" )
- return
- end
- local sPath = shell.resolve( tArgs[1] )
- local tFiles = fs.find( sPath )
- if #files > 0 then
- for n.sFile in ipairs( tFiles ) do
- fs.delete( sFile )
- end
- else
- printError( "No matching files" )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement