Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("cd /")
- function createOSDir()
- shell.run("mkdir ChikenOS")
- startup()
- end
- function firstSetup()
- shell.run("clear")
- if (not fs.exists("Data")) then
- shell.run("mkdir Data")
- os.sleep(0.1)
- firstSetup()
- end
- if (not fs.exists("cTurtleOS")) then
- shell.run("mkdir cTurtleOS")
- os.sleep(0.1)
- firstSetup()
- end
- print("cTurtleOS 1.0")
- print("Enter a computer name: ")
- local computerName = read()
- shell.run("label set "..computerName)
- print("You have set the computer name to: \""..os.getComputerLabel().."\"")
- end
- function continueSession()
- end
- function startup()
- if (not fs.exists("ChikenOS")) then
- createOSDir()
- end
- shell.run("cd ChikenOS")
- local canContinue = true
- if (not fs.exists("Data")) then
- canContinue = false
- end
- if (not fs.exists("cTurtleOS")) then
- canContinue = false
- end
- if (canContinue) then
- continueSession()
- else
- firstSetup()
- end
- end
- startup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement