Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local osv = "v1.0.0" -- Set this to the version string
- local gui = false -- Set to true if you put a gui on top of SKernel
- local versionColor = colors.yellow -- The color of the version on bootup
- local customShell = false -- Set to true if you have a custom shell
- -- Help
- -- If you want to make a gui, put the launcher for it in .os/guil
- -- Any programs you would like to add put in .os/programs/
- -- The programs in .os/programs/ will also overwrite the standard CraftOS ones
- -- If you have a custom shell put it in .os/programs/shell
- -- Code
- shell.run("clear")
- shell.setPath(".os/programs/:"..shell.path())
- if term.isColor() then
- term.setTextColor(versionColor)
- end
- print(osv)
- term.setTextColor(colors.white)
- function os.version()
- return "iGP OS "..osv
- end
- if gui then
- shell.run(".os/guil")
- shell.run("shutdown")
- end
- if customShell then
- shell.run(".os/programs/shell")
- shell.run("shutdown")
- end
Add Comment
Please, Sign In to add comment