Date: Tue, 31 May 2011 09:04:30 -0400 From: Xn Nooby <xnooby@gmail.com> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: A small script to customize FreeBSD Message-ID: <BANLkTin%2BODPaYLUXH83inyPFxHvcUZQ8Kw@mail.gmail.com> In-Reply-To: <BANLkTinvg0ewgvTKbzGk94AyGz%2B1yxmQLg@mail.gmail.com> References: <BANLkTi=5TTgA94sd6KU-XToS=qDBnNYWTg@mail.gmail.com> <BANLkTinvg0ewgvTKbzGk94AyGz%2B1yxmQLg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 31, 2011 at 5:19 AM, Chris Rees <utisoft@gmail.com> wrote: > 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 > That's a good idea. The user was originally called "me", but I wanted something that could be searched and replaced without breaking "gnome" and "home". Using a parameter would be even better, thanks!.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTin%2BODPaYLUXH83inyPFxHvcUZQ8Kw>