This script replaces--or rather will eventually replace--the bash script that installs netboot files in /media/A2SHARED. It generally is going to be implemented for now as a copy of the shell script, not quite verbatim. For example, rather than run individual commands with sudo, it re-runs itself with sudo. And rather than force scriptURL to include a trailing slash, it explicitly chops the slash off to behave more like you'd expect directories to. Also, the body of installing the netboot files will be built as a function rather than as straight script execution. Basically the idea there is to begin breaking the components of the netboot script into their own functions that can be accessed independently in the future. One step at a time there. Anyway, very little of the script is done yet. This is just to begin the process and perhaps elicit some feedback if I'm really doing something totally wrong here--my python's a little rusty.
A2SERVER
AppleTalk server for Apple // computers developed by Ivan Drucker
Documentation here is sparse for the moment; see Ivan's site for information about A2SERVER and how it all works. There's a lot there and it's kind of evolved organically over the years just as the scripts themselves have, so it's going to be awhile before that information can be backfilled and perhaps organized into something you might call a user manual.
Such a manual should not be considered a replacement for Ivan's organic online documentation--those contents themselves represent Apple // history, if a relatively modern piece of it. As such they should be preserved as they are.
Developer note
To use the scripts on a server other than Ivan's, you need to do two things. First, the server needs to be modified to serve setup/index.txt and update/index.txt the same way they would serve index.html. How you do that is beyond the scope of this repository for the moment. Secondly, you'll want to set the shell variable A2SERVER_SCRIPT_URL to the base URL of this repository on your server. The base-URL should be slash-terminated. You can then run the following snippet:
wget a2server-setup ${A2SERVER_SCRIPT_URL}setup/; source a2server-setup
You should probably export A2SERVER_SCRIPT_URL in your .bashrc or whatever file configures your development environment. Also be advised that as of version 1.24 of A2SERVER, you must use the snippet above.