added a version of luash that requires you to enter _G.pass before letting you do anything.
This commit is contained in:
parent
ab636ef655
commit
f4747c076f
18
modules/applications/luash-login.lua
Normal file
18
modules/applications/luash-login.lua
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
function luash(si)
|
||||||
|
s("lua shell",function()
|
||||||
|
local np = ""
|
||||||
|
while np ~= pass do
|
||||||
|
write("Password: ")
|
||||||
|
np=readln("*")
|
||||||
|
end
|
||||||
|
if _OSVERSION and _BD then
|
||||||
|
write(_OSVERSION.." on "..nID.." (built at ".._BD..")\t")
|
||||||
|
end
|
||||||
|
print(tostring(computer.freeMemory()/1024).."K free.",_G.motd)
|
||||||
|
print(_VERSION)
|
||||||
|
while true do
|
||||||
|
write("> ")
|
||||||
|
print(pcall(load(readln())))
|
||||||
|
end
|
||||||
|
end,si)
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user