head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1.4.1
	RELENG_4_11:1.1.4.1.0.12
	RELENG_4_11_BP:1.1.4.1
	RELENG_4_10_0_RELEASE:1.1.4.1
	RELENG_4_10:1.1.4.1.0.10
	RELENG_4_10_BP:1.1.4.1
	RELENG_4_9_0_RELEASE:1.1.4.1
	RELENG_4_9:1.1.4.1.0.8
	RELENG_4_9_BP:1.1.4.1
	RELENG_4_8_0_RELEASE:1.1.4.1
	RELENG_4_8:1.1.4.1.0.6
	RELENG_4_8_BP:1.1.4.1
	RELENG_4_7_0_RELEASE:1.1.4.1
	RELENG_4_7:1.1.4.1.0.4
	RELENG_4_7_BP:1.1.4.1
	RELENG_4_6_2_RELEASE:1.1.4.1
	RELENG_4_6_1_RELEASE:1.1.4.1
	RELENG_4_6_0_RELEASE:1.1.4.1
	RELENG_4_6:1.1.4.1.0.2
	RELENG_4_6_BP:1.1.4.1
	RELENG_4_5_0_RELEASE:1.1
	RELENG_4_5:1.1.0.10
	RELENG_4_5_BP:1.1
	RELENG_4_4_0_RELEASE:1.1
	RELENG_4_4:1.1.0.8
	RELENG_4_4_BP:1.1
	RELENG_4_3_0_RELEASE:1.1
	RELENG_4_3:1.1.0.6
	RELENG_4_3_BP:1.1
	RELENG_4_2_0_RELEASE:1.1
	RELENG_4_1_1_RELEASE:1.1
	PRE_SMPNG:1.1
	RELENG_4_1_0_RELEASE:1.1
	RELENG_3_5_0_RELEASE:1.1.2.1
	RELENG_4_0_0_RELEASE:1.1
	RELENG_4:1.1.0.4
	RELENG_4_BP:1.1
	RELENG_3_4_0_RELEASE:1.1.2.1
	RELENG_3:1.1.0.2;
locks; strict;
comment	@# @;


1.2
date	2002.03.09.08.28.10;	author luigi;	state dead;
branches;
next	1.1;

1.1
date	99.10.08.04.00.08;	author dwhite;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.1.2.1
date	99.10.17.23.11.10;	author dwhite;	state Exp;
branches;
next	;

1.1.4.1
date	2002.03.08.13.18.07;	author luigi;	state dead;
branches;
next	;


desc
@@


1.2
log
@Nuke abandoned configuration.
@
text
@#!/bin/sh
#
# PicoBSD installer script for FreeBSD
#
# Doug White
# $FreeBSD: src/release/picobsd/install/floppy.tree/etc/doinstall,v 1.1 1999/10/08 04:00:08 dwhite Exp $

#### CONFIGURATION

# URL to image tarball, fed to fetch(1)
image_url="ftp://YOUR.SERVER.HERE/pub/fbsdimage.tgz"

# Target disk driver to fdisk -e
target_disk="wd0"

#### END CONFIGURATION

# Immediately abort on error
set -e

# Do the install

echo "==> Partitioning disk"
fdisk -e ${target_disk}

echo "==> Disklabeling disk"
/etc/prepdisk ${target_disk}

echo "==> Creating filesystem"
newfs /dev/r${target_disk}s1a > /dev/null

echo "==> Mounting new filesystem"
mount /dev/${target_disk}s1a /mnt

echo "==> Installing disk image"
if [ "X${image_url}" = "X" ] ; then
   echo "No URL specified!"
else
   echo "=====> From:  ${image_url}"
   cd /mnt
   fetch -a -o - ${image_url} | gzip -d | cpio -idmu --quiet
fi

# Some examples of post-install tweaking

# The install floppy always DHCPs an address.  If you want to make that
# address permanent on the system, use this code bit.

#echo "==> Saving IP address"
#set `ifconfig fxp0 | grep inet`
#echo "ifconfig_fxp0=\"inet $2 netmask $4\"" >> /mnt/etc/rc.conf
#echo "=====> IP Address is $2"

# If you enable different apps based on environment, here's an example.
# For 10.2.X.X networks, enable AMD.

#echo "==> Checking if amd should be enabled"
#IFS=.
#set $2
#if [ "X$1" = "X10" -a "X$2" = "X1" ] ; then
#   echo "=====> Enabling amd"
#   echo "amd_enable=\"YES\"" >> /mnt/etc/rc.conf
#fi 

#echo "==> Setting default router"
#echo "defaultrouter=\"10.1.1.3\"" >> /mnt/etc/rc.conf

# Grab the DNS servers from the local DHCP configuration.

#echo "==> Configuring name resolution"
#cp /etc/resolv.conf /mnt/etc

# Prompt a menu to install a single or multiprocessor kernel.  On our
# main image, we have two kernels, kernel-SMP and kernel-NOSMP.  This
# menu drops a symlink that the bootblocks follow to the proper kernel.
# The user can enter a name for a different kernel if desired.

#echo "==> Linking kernel"

#DOKERN=0
#cd /mnt
#chflags noschg kernel
#rm -f kernel
#
#while [ "X$DOKERN" = "X0" ] ; do
#
#   DOKERN=1
#
#   echo "    Please specify which kernel to use:"
#   echo "       1.  Uniprocessor"
#   echo "       2.  Multiprocessor (OK for SMP equipped systems with one CPU)"
#   echo "       Or type the name of the kernel you wish to use"
#   read -p "Select >" KERN
#
#
#   if [ "X$KERN" = "X1"  ] ; then
#      ln -s kernel-NOSMP kernel
#      echo "=====> Uniprocessor kernel selected"
#   elif [ "X$KERN" = "X2" ] ; then
#      ln -s kernel-SMP kernel
#      echo "=====> SMP kernel selected"
#   elif [ -f $KERN ] ; then
#      ln -s $KERN kernel
#      echo "=====> User supplied kernel $KERN selected"
#   else
#      echo "*** Unknown kernel $KERN" 
#      KERN=0
#   fi
#
#done

echo "==> Install complete!"
@


1.1
log
@Add a new floppy type, install.  This type builds a disk that can
slice, partition, newfs, and install FreeBSD from a tarball on a remote server.
Handy for doing mass-installs for server farms.

Documentation following shortly.
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.1.4.1
log
@Nuke this abandoned configuration which has been broken for ages.
@
text
@d6 1
a6 1
# $FreeBSD: src/release/picobsd/install/floppy.tree/etc/doinstall,v 1.1 1999/10/08 04:00:08 dwhite Exp $
@


1.1.2.1
log
@MFC: Add install floppy.
@
text
@d6 1
a6 1
# $FreeBSD: src/release/picobsd/install/floppy.tree/etc/doinstall,v 1.1 1999/10/08 04:00:08 dwhite Exp $
@

