This archive's contents are Copyright (C) 2003 Leon Brooks <leon@cyberknights.com.au>
and may be used and distributed only under the terms of the GNU General Public Licence
version 2 or later.

This utility may, if you are lucky, generate a working WEP-104 protected configuration
for RT2400-based network cards. Run the script RaGe.sh from the command-line in this
directory as root.

The script attempts to guess your domain name from your host name and use that to
identify your profile and wireless LAN SSID, if you would prefer to specify it instead,
supply your chosen name (no spaces, quotes, apostrophes or any other kinky characters
that might sadden BASH) on the command line.

It might produce a directory /tmp/Ralink containing three files. Putting these 3 files
into /etc/Ralink/RT2400 could possibly make an RT2400-based wireless LAN card such as
the Minitar MNW2BPCI happy, but I'm not allowed to say that in case any lawyers jump
up and down on my head for making misleading promises.

To have any hope, you will need to shut down the interface and remove the module
("rmmod rt2400") after generating and emplacing the config files, then restart the
interface which on sane systems will also cause the module to reload. The Minitar
docs don't mention this, but doing a "depmod -a" in between building the module and
trying to use it could possibly improve your luck.

If you want to have a stab at generating the files directly in their destination
directory, edit the value supplied to the RAPATH envar within the script. The
generated values will overwrite and destroy any existing settings.

Copy the generated files to all of the other machines on your new WAN, and do the
restart-the-module thing after installing them. You should be able to ping between
them quite happily.

The script GenChunks.sh makes a new set of templates from a single-entry set of
configuration files created by the official RaConfig X-based configuration tool. You
might want to do this if you required WAN components without WEP protection, with a
different level of protection (in which case you will also need to do surgery on the
RaGe.sh script to teach it to do that), or with some other default set differently.

If you make an improvement to the script, please resubmit it to me promptly for
inclusion in the "official" version. My favourite submission form is a context
diff (diff -dc file1 file2).

This script has only ever been tried with the Ralink tools of 09 Sep 2003.

