Date: Tue, 31 May 2011 10:19:50 +0100 From: Chris Rees <utisoft@gmail.com> To: Xn Nooby <xnooby@gmail.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: A small script to customize FreeBSD Message-ID: <BANLkTinvg0ewgvTKbzGk94AyGz%2B1yxmQLg@mail.gmail.com> In-Reply-To: <BANLkTi=5TTgA94sd6KU-XToS=qDBnNYWTg@mail.gmail.com> References: <BANLkTi=5TTgA94sd6KU-XToS=qDBnNYWTg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 31 May 2011 04:19, Xn Nooby <xnooby@gmail.com> wrote:
> Hello. =A0I wrote a script to install FreeBSD 8.2 on to a real machine,
> or a 64-bit Virtualbox VM. =A0It has a modular approach where you can
> pick which functions will be run on a different target system. It can
> be tweaked easily. =A0I wrote it so that I could do a quick "plain
> vanilla install", and then run this script to set up my user, SVN
> server, gnome, firefox4, flash, nvidia driver, vbox additons, and
> other things. I thought I would post it in case other beginners need
> some thing like this to help them configure a machine. =A0I started off
> with detailed notes, then thought I might as well script it. When you
> run it, the only user interaction is having to enter the user password
> twice. =A0Let me know if anyone has any suggestions.
How about using $1 instead of theuser?
You could always have ${1:-theuser} instead to have a default of
theuser, but take the value for username as the first argument.
Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinvg0ewgvTKbzGk94AyGz%2B1yxmQLg>
