QuickMuffin8782-Alt

Untitled

Sep 18th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local osv = "v1.0.0" -- Set this to the version string
  2. local gui = false -- Set to true if you put a gui on top of SKernel
  3. local versionColor = colors.yellow -- The color of the version on bootup
  4. local customShell = false -- Set to true if you have a custom shell
  5. -- Help
  6. -- If you want to make a gui, put the launcher for it in .os/guil
  7. -- Any programs you would like to add put in .os/programs/
  8. -- The programs in .os/programs/ will also overwrite the standard CraftOS ones
  9. -- If you have a custom shell put it in .os/programs/shell
  10. -- Code
  11. shell.run("clear")
  12. shell.setPath(".os/programs/:"..shell.path())
  13. if term.isColor() then
  14. term.setTextColor(versionColor)
  15. end
  16. print(osv)
  17. term.setTextColor(colors.white)
  18. function os.version()
  19.     return "iGP OS "..osv
  20. end
  21. if gui then
  22.     shell.run(".os/guil")
  23.     shell.run("shutdown")
  24. end
  25. if customShell then
  26.     shell.run(".os/programs/shell")
  27.     shell.run("shutdown")
  28. end
Add Comment
Please, Sign In to add comment