https://github.com/mechazawa/cc-netboot
Boot computercraft machines from a network source
https://github.com/mechazawa/cc-netboot
computercraft computercraft-scripts
Last synced: 2 months ago
JSON representation
Boot computercraft machines from a network source
- Host: GitHub
- URL: https://github.com/mechazawa/cc-netboot
- Owner: Mechazawa
- License: unlicense
- Created: 2023-01-26T17:46:27.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-05T00:29:38.000Z (about 2 years ago)
- Last Synced: 2024-12-25T16:29:35.307Z (4 months ago)
- Topics: computercraft, computercraft-scripts
- Language: Lua
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ComputerCraft Netboot
---------------------
Utillity for booting computercraft computers using a network source.This script was quickly put together so I could more easilly develop my own applications.
## Usage
The script downloads files from a HTTP server so you'll need to set one up and place a `listing.txt` in the same directory as your source files. The listing file contains all the relative file paths that need to be downloaded before the device boots.After that a startup script needs to be made that points to the base url where the `listing.txt` file is located.
```lua
require("netboot")(
"boot" -- Where the downloaded files should be placed
"http://172.16.0.123:8000/", -- Base url where the files are located
{}, -- Optional HTTP headers used during the requests, usefull for authentication etc
true, -- If the download directory should be purged before downloading scripts, defaults to false
)
```