configuration script+issues

To install wagn I have to hand edit several files before starting it up. I'd like to be able to launch the Wagn and do initial configuration from a wagn card which could write the info back to the relevant files.