Date: Fri, 29 Feb 2008 22:20:56 +0100 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: Jeff Gold <jeff.gold@gmail.com>, jedrek <jedrek@t-n-p.org> Subject: Re: Scripting sysinstall Message-ID: <200802292220.56998.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <4bded9640802291240r14c9b011t19f3734fb229853@mail.gmail.com> References: <4bded9640802150914x4c868f40ue0f21b8d8e163745@mail.gmail.com> <47C805B8.1040202@t-n-p.org> <4bded9640802291240r14c9b011t19f3734fb229853@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 29 February 2008 21:40:47 Jeff Gold wrote:
> echo "8 partitions:" > /tmp/bsdlabel.conf
> slice a 1 G 4.2BSD 2048 16384 32776 >> /tmp/bsdlabel.conf
> slice b 2 G swap >> /tmp/bsdlabel.conf
> echo "c: $size 0 unused 0 0" >> /tmp/bsdlabel.conf
> slice d 10 p 4.2BSD 2048 16384 28552 >> /tmp/bsdlabel.conf
> slice e 15 p 4.2BSD 2048 16384 8 >> /tmp/bsdlabel.conf
> slice f 100 p 4.2BSD 2048 16384 28552 >> /tmp/bsdlabel.conf
> bsdlabel -R ${disk}s1 /tmp/bsdlabel.conf
Missing a few echo's there and better off for ease of editing in the future,
to use the cat <<EOF >/tmp/bsdlabel.conf syntax. It will expand variables:
$ cat t.sh
#!/bin/sh
FOO=bar
cat <<EOF >/tmp/out
foo is $FOO
EOF
$ sh t.sh && cat /tmp/out
foo is bar
> cat <<EOF > $DESTDIR/etc/rc.conf
> # FIXME: something should go in here.
> EOF
Yea, probably:
ifconfig_${iface}="DHCP"
keyrate="fast"
sshd_enable="YES"
Otherwise, nicely done :)
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802292220.56998.fbsd.questions>
