head	1.8;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.114
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.112
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.110
	netbsd-10-base:1.8
	netbsd-9-3-RELEASE:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.108
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.8.0.106
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	is-mlppp:1.8.0.104
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.8
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.102
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.8
	netbsd-8-1-RC1:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.8
	pgoyette-compat-0728:1.8
	netbsd-8-0-RELEASE:1.8
	phil-wifi:1.8.0.100
	phil-wifi-base:1.8
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	netbsd-8-0-RC1:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.8
	pgoyette-compat:1.8.0.98
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.8
	matt-nb8-mediatek:1.8.0.96
	matt-nb8-mediatek-base:1.8
	perseant-stdc-iso10646:1.8.0.94
	perseant-stdc-iso10646-base:1.8
	netbsd-8:1.8.0.92
	netbsd-8-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.90
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	netbsd-7-1:1.8.0.88
	netbsd-7-1-RELEASE:1.8
	netbsd-7-1-RC2:1.8
	netbsd-7-nhusb-base-20170116:1.8
	bouyer-socketcan:1.8.0.86
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	netbsd-7-1-RC1:1.8
	pgoyette-localcount-20161104:1.8
	netbsd-7-0-2-RELEASE:1.8
	localcount-20160914:1.8
	netbsd-7-nhusb:1.8.0.84
	netbsd-7-nhusb-base:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.82
	pgoyette-localcount-base:1.8
	netbsd-7-0-1-RELEASE:1.8
	netbsd-7-0:1.8.0.80
	netbsd-7-0-RELEASE:1.8
	netbsd-7-0-RC3:1.8
	netbsd-7-0-RC2:1.8
	netbsd-7-0-RC1:1.8
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.8.0.78
	netbsd-7-base:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.8.0.76
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.8
	riastradh-drm2-base1:1.8
	riastradh-drm2:1.8.0.68
	riastradh-drm2-base:1.8
	netbsd-6-1:1.8.0.74
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	khorben-n900:1.8.0.72
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.8.0.70
	agc-symver-base:1.8
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.8.0.66
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.8
	netbsd-6-0:1.8.0.64
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.8.0.62
	tls-maxphys-base:1.8
	matt-nb6-plus:1.8.0.60
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-6:1.8.0.58
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.56
	yamt-pagecache-base:1.8
	cherry-xenmp:1.8.0.54
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.52
	bouyer-quota2-base:1.8
	matt-mips64-premerge-20101231:1.8
	matt-nb5-mips64-premerge-20101231:1.8
	matt-nb5-pq3:1.8.0.50
	matt-nb5-pq3-base:1.8
	netbsd-5-1:1.8.0.48
	netbsd-5-1-RELEASE:1.8
	netbsd-5-1-RC4:1.8
	matt-nb5-mips64-k15:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	netbsd-5-0-2-RELEASE:1.8
	matt-nb5-mips64-premerge-20091211:1.8
	matt-premerge-20091211:1.8
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.8
	matt-nb4-mips64-k7-u2a-k9b:1.8
	matt-nb5-mips64-u1-k1-k5:1.8
	matt-nb5-mips64:1.8.0.46
	netbsd-5-0-1-RELEASE:1.8
	jym-xensuspend-nbase:1.8
	netbsd-5-0:1.8.0.44
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	jym-xensuspend:1.8.0.42
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.8
	netbsd-5:1.8.0.40
	netbsd-5-base:1.8
	matt-mips64-base2:1.8
	matt-mips64:1.8.0.38
	netbsd-4-0-1-RELEASE:1.8
	wrstuden-revivesa-base-3:1.8
	wrstuden-revivesa-base-2:1.8
	wrstuden-fixsa-newbase:1.8
	wrstuden-revivesa-base-1:1.8
	yamt-pf42-base4:1.8
	yamt-pf42-base3:1.8
	hpcarm-cleanup-nbase:1.8
	yamt-pf42-baseX:1.8
	yamt-pf42-base2:1.8
	wrstuden-revivesa:1.8.0.36
	wrstuden-revivesa-base:1.8
	yamt-pf42:1.8.0.34
	yamt-pf42-base:1.8
	mjf-devfs2:1.8.0.32
	mjf-devfs2-base:1.8
	keiichi-mipv6:1.8.0.30
	keiichi-mipv6-base:1.8
	mjf-devfs:1.8.0.28
	mjf-devfs-base:1.8
	matt-armv6-nbase:1.8
	matt-armv6-prevmlocking:1.8
	wrstuden-fixsa-base-1:1.8
	netbsd-4-0:1.8.0.26
	netbsd-4-0-RELEASE:1.8
	cube-autoconf:1.8.0.24
	cube-autoconf-base:1.8
	netbsd-4-0-RC5:1.8
	netbsd-4-0-RC4:1.8
	netbsd-4-0-RC3:1.8
	netbsd-4-0-RC2:1.8
	netbsd-4-0-RC1:1.8
	matt-armv6:1.8.0.22
	matt-armv6-base:1.8
	matt-mips64-base:1.8
	hpcarm-cleanup:1.8.0.20
	hpcarm-cleanup-base:1.8
	netbsd-3-1-1-RELEASE:1.8
	netbsd-3-0-3-RELEASE:1.8
	wrstuden-fixsa:1.8.0.18
	wrstuden-fixsa-base:1.8
	abandoned-netbsd-4-base:1.8
	abandoned-netbsd-4:1.8.0.12
	netbsd-3-1:1.8.0.14
	netbsd-3-1-RELEASE:1.8
	netbsd-3-0-2-RELEASE:1.8
	netbsd-3-1-RC4:1.8
	netbsd-3-1-RC3:1.8
	netbsd-3-1-RC2:1.8
	netbsd-3-1-RC1:1.8
	netbsd-4:1.8.0.16
	netbsd-4-base:1.8
	netbsd-3-0-1-RELEASE:1.8
	netbsd-3-0:1.8.0.10
	netbsd-3-0-RELEASE:1.8
	netbsd-3-0-RC6:1.8
	netbsd-3-0-RC5:1.8
	netbsd-3-0-RC4:1.8
	netbsd-3-0-RC3:1.8
	netbsd-3-0-RC2:1.8
	netbsd-3-0-RC1:1.8
	netbsd-2-0-3-RELEASE:1.8
	netbsd-2-1:1.8.0.8
	netbsd-2-1-RELEASE:1.8
	netbsd-2-1-RC6:1.8
	netbsd-2-1-RC5:1.8
	netbsd-2-1-RC4:1.8
	netbsd-2-1-RC3:1.8
	netbsd-2-1-RC2:1.8
	netbsd-2-1-RC1:1.8
	netbsd-2-0-2-RELEASE:1.8
	netbsd-3:1.8.0.6
	netbsd-3-base:1.8
	netbsd-2-0-1-RELEASE:1.8
	netbsd-2:1.8.0.4
	netbsd-2-base:1.8
	netbsd-2-0-RELEASE:1.8
	netbsd-2-0-RC5:1.8
	netbsd-2-0-RC4:1.8
	netbsd-2-0-RC3:1.8
	netbsd-2-0-RC2:1.8
	netbsd-2-0-RC1:1.8
	netbsd-2-0:1.8.0.2
	netbsd-2-0-base:1.8
	netbsd-1-6-PATCH002-RELEASE:1.7
	netbsd-1-6-PATCH002:1.7
	netbsd-1-6-PATCH002-RC4:1.7
	netbsd-1-6-PATCH002-RC3:1.7
	netbsd-1-6-PATCH002-RC2:1.7
	netbsd-1-6-PATCH002-RC1:1.7
	netbsd-1-6-PATCH001:1.7
	netbsd-1-6-PATCH001-RELEASE:1.7
	netbsd-1-6-PATCH001-RC3:1.7
	netbsd-1-6-PATCH001-RC2:1.7
	netbsd-1-6-PATCH001-RC1:1.7
	fvdl_fs64_base:1.7
	netbsd-1-6-RELEASE:1.7
	netbsd-1-6-RC3:1.7
	netbsd-1-6-RC2:1.7
	netbsd-1-6-RC1:1.7
	netbsd-1-6:1.7.0.4
	netbsd-1-6-base:1.7
	netbsd-1-5-PATCH003:1.7
	netbsd-1-5-PATCH002:1.7
	netbsd-1-5-PATCH001:1.7
	netbsd-1-5-RELEASE:1.7
	netbsd-1-5-BETA2:1.7
	netbsd-1-5-BETA:1.7
	netbsd-1-4-PATCH003:1.4.2.1
	netbsd-1-5-ALPHA2:1.7
	netbsd-1-5:1.7.0.2
	netbsd-1-5-base:1.7
	minoura-xpg4dl:1.5.0.6
	minoura-xpg4dl-base:1.5
	netbsd-1-4-PATCH002:1.4.2.1
	wrstuden-devbsize-19991221:1.5
	wrstuden-devbsize:1.5.0.4
	wrstuden-devbsize-base:1.5
	comdex-fall-1999:1.5.0.2
	comdex-fall-1999-base:1.5
	netbsd-1-4-PATCH001:1.4.2.1
	netbsd-1-4-RELEASE:1.4
	netbsd-1-4:1.4.0.2
	netbsd-1-4-base:1.4;
locks; strict;
comment	@# @;


1.8
date	2003.07.26.17.07.38;	author salo;	state Exp;
branches
	1.8.32.1;
next	1.7;

1.7
date	2000.06.14.17.24.47;	author cgd;	state Exp;
branches;
next	1.6;

1.6
date	2000.06.14.06.48.57;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	99.06.22.02.21.58;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	98.11.28.01.38.30;	author jonathan;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	97.08.15.23.03.57;	author perry;	state Exp;
branches;
next	1.2;

1.2
date	97.08.04.22.33.58;	author phil;	state Exp;
branches;
next	1.1;

1.1
date	97.06.14.18.56.10;	author perry;	state Exp;
branches;
next	;

1.8.32.1
date	2008.10.05.20.11.09;	author mjf;	state dead;
branches;
next	;

1.4.2.1
date	99.06.22.14.22.33;	author perry;	state Exp;
branches;
next	;


desc
@@


1.8
log
@netbsd.org->NetBSD.org
@
text
@# $NetBSD: dot.instutils,v 1.7 2000/06/14 17:24:47 cgd Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#          This product includes software developed for the
#          NetBSD Project.  See http://www.NetBSD.org/ for
#          information about NetBSD.
# 4. The name of the author may not be used to endorse or promote products
#    derived from this software without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 
# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>

# Installation configuration utilities (functions), to get NetBSD configured
# reasonably once it is installed on the hard disk.  These are meant to be
# invoked from the shell prompt, by people installing NetBSD.

config_int()
{
	local intf resp ifname ifaddr ifflags
	intf=$1
	case "$intf" in
		""|lo*|ppp*|sl*|tun*)
			return 0;
			;;
		*)
			;;
	esac
		
	echo -n "Configure" $intf "? [y]"
	read resp
	case "$resp" in
	n*|N*)
		return 0;
		;;
	*)
		;;
	esac

	echo -n "What is the hostname for this interface? [$hname] "
	read ifname
	if [ "$ifname" = "" ]; then
		ifname=$hname
	fi
	ifaddr=
	while [ "$ifaddr" = "" ]; do
		echo -n "What is the IP address associated with "
		echo -n "interface ${intf}? "
		read ifaddr
	done
	echo "$ifaddr	$ifname `echo $ifname | sed -e s/\.$dname//`" \
	    >> ${ETC}/hosts

	echo -n "Does this interface have a special netmask? [n] "
	read resp
	case "$resp" in
		y*)
			echo -n "What is the netmask? [0xffffff00] "
			read ifnetmask
			if [ "$ifnetmask" = "" ]; then
				ifnetmask=0xffffff00
			fi
			ifnetmask_arg="netmask $ifnetmask"
			;;
		*)
			ifnetmask=
			ifnetmask_arg=
			;;
	esac

	echo -n "Does this interface need a special media type? [n] "
	read resp
	case "$resp" in
		y*)
			echo -n "What media type? [10baseT/UTP] "
			read ifflags
			if [ "$ifflags" = "" ]; then
				ifflags="10baseT/UTP"
			fi
			ifflags_arg="media $ifflags"
			;;
		*)
			ifflags=
			ifflags_arg=
			;;
	esac
	echo "inet $ifname $ifnetmask_arg $ifflags_arg" > ${ETC}/ifconfig.$intf
}


Configure()
{
	DEV=/dev
	ETC=/etc
	ROOT=/
	if [ ! -f /etc/fstab ]; then
		DEV=/mnt/dev
		ETC=/mnt/etc
		ROOT=/mnt
	fi

	echo	"You will now be prompted for information about this"
	echo	"machine.  If you hit return, the default answer (in"
	echo	"brackets) will be used."

	echo	""
	echo -n	"What is this machine's hostname? [unknown.host.domain] "
	read hname
	if [ "$hname" = "" ]; then
		hname=unknown.host.domain
	fi
	echo $hname > ${ETC}/myname
	proto_domain=`echo $hname | sed -e 's/[^.]*\.//'`

	echo	""
	echo	"What DNS domain is this machine in (this is NOT its YP"
	echo -n	"domain name)? [$proto_domain] "
	read dname
	if [ "$dname" = "" ]; then
		dname=$proto_domain
	fi

	echo	""
	if [ -e $ETC/sendmail.cf ]; then
		echo	"WARNING: A default sendmail.cf exists, and probably"
		echo	"needs to be tuned and/or replaced, to work properly at"
		echo	"your site!"
	else
		echo	"WARNING: No default sendmail.cf installed.  Did you"
		echo	"forget to install the 'etc' distribution?"
	fi

	echo	"127.0.0.1	localhost localhost.$dname" > ${ETC}/hosts

	echo	""
	echo -n	"Configure network interfaces? [y] "
        read resp
        case "$resp" in
	n*)
		;;
	*)
		for if in `ifconfig -l`
		do
			config_int $if
		done
		;;
	esac

	
	echo	""
	echo -n	"Making device nodes (may take a while)..."
	cd ${DEV}
	sh MAKEDEV all
	echo	" done."

	sync

	if [ ! -f ${ROOT}/netbsd ]
	then
		echo "You have not unpacked the kernel installation"
		echo "set. You must do so before you reboot."
	fi
}

# Upgrade cleanup utilities (functions), to make sure a recently-upgraded
# system is safely runnable.  These are meant to be invoked from the shell
# prompt, by people installing NetBSD.

Cleanup()
{
	upgrade_dir=/

	if [ ! -f /etc/fstab ]; then
		upgrade_dir=/mnt
	fi

	echo	"Cleaning up miscellaneous files in /etc..."
	mv $upgrade_dir/etc/rc.bak $upgrade_dir/etc/rc
	chroot $upgrade_dir /usr/sbin/pwd_mkdb -p /etc/master.passwd
	chroot $upgrade_dir /bin/rm /etc/sendmail.fc > /dev/null 2>&1
	sync
	echo	"Done."

	echo	""
	echo	"All that's left to do now is to install a new NetBSD kernel"
	echo	"on your hard disk.  You should now halt your machine using"
	echo	"the 'halt' command.  Once the machine is halted, replace the"
	echo	"installation floppy with the kernel-copy floppy and hit any"
	echo	"key to reboot.  Use the kernel-copy floppy to copy a kernel"
	echo	"to your hard disk."
}
@


1.8.32.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: dot.instutils,v 1.8 2003/07/26 17:07:38 salo Exp $
@


1.7
log
@sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
@
text
@d1 1
a1 1
# $NetBSD: dot.instutils,v 1.6 2000/06/14 06:48:57 cgd Exp $
d17 1
a17 1
#          NetBSD Project.  See http://www.netbsd.org/ for
@


1.6
log
@fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
@
text
@d1 1
a1 1
# $NetBSD: dot.instutils,v 1.5 1999/06/22 02:21:58 cgd Exp $
d16 3
a18 1
#	This product includes software developed by Christopher G. Demetriou.
d20 2
a21 2
#    derived from this software without specific prior written permission
#
d32 2
@


1.5
log
@explicitly mention that the domain name requested is the DNS domain name
@
text
@d1 1
a1 1
#	$NetBSD: dot.instutils,v 1.4 1998/11/28 01:38:30 jonathan Exp $
a29 1
#
@


1.4
log
@Copy script-based installer from i386 ramdisk to MI directory.
@
text
@d1 1
a1 1
#	$NetBSD: dot.instutils,v 1.3 1997/08/15 23:03:57 perry Exp $
d134 1
a134 1
	echo	"What domain is this machine in (this is NOT its YP"
@


1.4.2.1
log
@pullup 1.4->1.5 (cgd): mention the domain name is the DNS name
@
text
@d1 1
a1 1
#	$NetBSD: dot.instutils,v 1.5 1999/06/22 02:21:58 cgd Exp $
d134 1
a134 1
	echo	"What DNS domain is this machine in (this is NOT its YP"
@


1.3
log
@improve the net interface config stuff
@
text
@d1 1
a1 1
#	$NetBSD: dot.instutils,v 1.2 1997/08/04 22:33:58 phil Exp $
@


1.2
log
@In Config(): hostname.XXX -> ifconfig.XXX for new netstart.
@
text
@d1 1
a1 1
#	$NetBSD: dot.instutils,v 1.1 1997/06/14 18:56:10 perry Exp $
d36 73
d113 1
d117 1
d154 1
a154 1
	echo -n	"Does this machine have an ethernet interface? [y] "
d160 3
a162 16
		intf=
		while [ "$intf" = "" ]; do
			echo -n "What is the primary interface name "
			echo -n "(e.g. ed0, ep0, etc)? "
			read intf
		done
		echo -n "What is the hostname for this interface? [$hname] "
		read ifname
		if [ "$ifname" = "" ]; then
 			ifname=$hname
		fi
		ifaddr=
		while [ "$ifaddr" = "" ]; do
			echo -n "What is the IP address associated with "
			echo -n "interface ${intf}? "
			read ifaddr
a163 39
		echo "$ifaddr	$ifname `echo $ifname | sed -e s/\.$dname//`" \
		    >> ${ETC}/hosts

		echo -n "Does this interface have a special netmask? [n] "
		read resp
		case "$resp" in
			y*)
				echo -n "What is the netmask? [0xffffff00] "
				read ifnetmask
				if [ "$ifnetmask" = "" ]; then
					ifnetmask=0xffffff00
				fi
				;;
			*)
				ifnetmask=
				;;
		esac

		echo -n "Does this interface need additional flags? [n] "
		read resp
		case "$resp" in
			y*)
				echo -n "What flags? [link0] "
				read ifflags
				if [ "$ifflags" = "" ]; then
					ifflags=link0
				fi
				;;
			*)
				ifflags=
				;;
		esac
		echo "inet $ifname $ifnetmask $ifflags" > ${ETC}/ifconfig.$intf

		echo    ""
		echo -n	"WARNING: if you have any more ethernet interfaces, "
		echo	"you will have to configure"
		echo -n "them by hand.  Read the comments in /etc/netstart to "
		echo	"learn how to do this."
d166 1
d176 5
a180 5
	echo	""
	echo	"If you haven't already installed a kernel on the hard drive"
	echo	"using your kernel-copy floppy, do so now.  Kernel"
	echo 	"installation instructions can be found in the"
	echo 	"installation notes."	
@


1.1
log
@Initial commit of new single floppy install/upgrade system.
@
text
@d1 1
a1 1
#	$NetBSD: dot.instutils,v 1.3 1996/10/09 00:13:43 jtc Exp $
d94 1
a94 1
			ifname=$hname
d134 1
a134 1
		echo "inet $ifname $ifnetmask $ifflags" > ${ETC}/hostname.$intf
@
