This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
snoble2022's profile picture

Optional Boot Order changer

Started by snoble2022, 30 December 2012 - 08:14 AM
snoble2022 #1
Posted 30 December 2012 - 09:14 AM
Hello, ever been on a where you made a password program for a house then someone comes up, places a disk drive, and overrides your program via disk. Well, now theres a way to stop that! Boot-Order is a small program that replaces a few files inside the computercraft mod (shell, startup) and adds one of its very own. With boot-order you can set the boot order for one-computer instead of all.

How to use:
1) Once installed (See readme inside package) type "Boot-Order -help" into the console to see a list of commands
2) Type "Boot-Order -disk" to allow booting from a disk if a startup file is present
3) Type "Boot-Order -root" to not allow booting from a disk even if a startup file is present on the disk

Additional Info:
Boot-Order has to be re-released for every new version of ComputerCraft, so if you install for example, Boot-Order 1.48 onto ComputerCraft 1.47, i'm not responsable for what happens. Boot-Order is compatible with every single program in the history of ComputerCraft as it isn't very intrusive. It just creates a folder called ".Data" for setting storage (any folder with a "." in front of it is a hidden folder). So unless a program uses a folder called ".Data" at the root of the computer then it's compatible. If for some reason you find a program that does, then I will change the folder name to something way to long to match any file a program uses (Just let me know if you find a program that does). By default Boot-Order allows booting from a disk.

Boot-Order should have no errors once o' ever. If you delete the ".Data" folder or its contents, Boot-Order will re-create it and default to booting from a disk on startup.

Download:
release #1.0.5 for version 1.48 and 1.481: [attachment=845:release 1.0.5_1.48&1.481.zip] (current)
release #1.0.0 for version 1.48 and 1.481: [attachment=841:Boot_Order_Change.zip]

See readme for installation instructions!
CoolisTheName007 #2
Posted 30 December 2012 - 09:31 AM
Finally someone actually makes one. Not that it is difficult, but, you know, Columbus egg and whatnot. +1.
snoble2022 #3
Posted 30 December 2012 - 09:36 AM
Yeah, really this was only about an added 20 lines of code. Plus, people have made this before. But, what makes this different is that you can chose whether or not you want it to block disk booting (per computer)