Subject: Re: What is 'scripting' in sysinst for?
To: None <tech-install@NetBSD.org, current-users@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-install
Date: 09/30/2003 14:11:37
On Tue, 30 Sep 2003, David Laight wrote:
> Sysinst has had (since Jan 1999) and option to write a 'script' file
> that is (or rather attempts to be) a list of the equivalent shell
> commands.

Instead of outputting a shell script, it might be more useful if sysinst
could output a "sysinst script", which could be used to replicate the
installation on another machine.

To help in setting up labs full of many machines, it would be really
nice if the hypothetical "sysinst scripting language" had some
ability to prompt the user and do variable substitution and simple
arithmetic.  For example, ask "what is the host number?" and then set
hostname="lab${foo}.example.net" and address="192.168.0.$((foo+10))"

--apb (Alan Barrett)