Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
_block_master187

Bios/Startup password?

Question

5 answers to this question

Recommended Posts

  • 0
On 4/10/2017 at 2:14 AM, Nexarius said:

Should be pretty simple program.

I just did this here. Save it to /autorun.lua


local passwort = "blabla"

while io.read() ~= passwort do 
  print("nicht OK")
end
print("OK")

 

Okay so I went to the root directory first..

cd /

Then I did

edit /autorun.lua

THEN I pasted in the code for the program..

After that, I saved it then rebooted my computer.

When it booted OpenOS, I was expecting the program to kick in and ask me for a password but it didn't. It just did what it normally does and took me to the shell.

Did I do something wrong?

Link to post
Share on other sites
  • 0
os.sleep(1)
require("term").clear()

local event = require("event")
function event.shouldInterrupt()
    return false
end

local passwort = "blabla"
local anzahl = 0

print("Passwort")
while io.read() ~= passwort do 
    print("nicht OK")
    os.sleep(anzahl)
    anzahl = anzahl + 1
end
print("OK")
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.