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.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to