head	1.9;
access;
symbols
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.6
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.4
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.8.102.1
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.2
	netbsd-10-base:1.9
	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.5
	netbsd-1-5-ALPHA2:1.7
	netbsd-1-5:1.7.0.2
	netbsd-1-5-base:1.7
	minoura-xpg4dl:1.5.0.10
	minoura-xpg4dl-base:1.5
	netbsd-1-4-PATCH002:1.5
	wrstuden-devbsize-19991221:1.5
	wrstuden-devbsize:1.5.0.8
	wrstuden-devbsize-base:1.5
	comdex-fall-1999:1.5.0.6
	comdex-fall-1999-base:1.5
	netbsd-1-4-PATCH001:1.5
	netbsd-1-4-RELEASE:1.5
	netbsd-1-4:1.5.0.4
	netbsd-1-4-base:1.5
	netbsd-1-3-PATCH003:1.5
	netbsd-1-3-PATCH003-CANDIDATE2:1.5
	netbsd-1-3-PATCH003-CANDIDATE1:1.5
	netbsd-1-3-PATCH003-CANDIDATE0:1.5
	netbsd-1-3-PATCH002:1.5
	netbsd-1-3-PATCH001:1.5
	netbsd-1-3-RELEASE:1.5
	netbsd-1-3-BETA:1.5
	netbsd-1-3:1.5.0.2
	netbsd-1-3-base:1.5
	netbsd-1-2-PATCH001:1.4
	netbsd-1-2-RELEASE:1.4
	netbsd-1-2-BETA:1.4
	netbsd-1-2-base:1.4
	netbsd-1-2:1.4.0.4
	netbsd-1-1-PATCH001:1.3.2.1
	netbsd-1-1-RELEASE:1.3.2.1
	netbsd-1-1:1.3.0.2
	netbsd-1-1-base:1.3
	netbsd-1-0-PATCH06:1.1
	netbsd-1-0-PATCH05:1.1
	netbsd-1-0-PATCH04:1.1
	netbsd-1-0-PATCH03:1.1
	netbsd-1-0-PATCH02:1.1
	netbsd-1-0-PATCH1:1.1
	netbsd-1-0-PATCH0:1.1
	netbsd-1-0-RELEASE:1.1
	netbsd-1-0:1.1.0.2
	netbsd-1-0-base:1.1;
locks; strict;
comment	@# @;


1.9
date	2022.08.28.12.44.00;	author tsutsui;	state Exp;
branches;
next	1.8;
commitid	ffdFI4r0VZkE2ERD;

1.8
date	2003.07.26.17.06.29;	author salo;	state Exp;
branches
	1.8.32.1
	1.8.102.1;
next	1.7;

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

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

1.5
date	96.08.30.17.32.24;	author thorpej;	state Exp;
branches;
next	1.4;

1.4
date	95.11.28.23.57.04;	author jtc;	state Exp;
branches;
next	1.3;

1.3
date	95.10.09.02.41.31;	author chopps;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	95.10.02.12.58.46;	author chopps;	state Exp;
branches;
next	1.1;

1.1
date	94.10.06.20.25.50;	author chopps;	state Exp;
branches
	1.1.2.1;
next	;

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

1.8.102.1
date	2022.08.30.18.35.19;	author martin;	state Exp;
branches;
next	;
commitid	0ODvJtr0AhtbVVRD;

1.3.2.1
date	95.11.03.22.29.04;	author jtc;	state Exp;
branches;
next	;

1.1.2.1
date	94.10.06.20.25.50;	author chopps;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	94.10.06.20.25.51;	author chopps;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Avoid more obsolescent binary primaries not supported by crunched test(1).

See PR/54835 and PR/56983 for details.
@
text
@# $NetBSD: dot.commonutils,v 1.8 2003/07/26 17:06:29 salo 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 utilites (functions), to get NetBSD installed on
# the hard disk.  These are meant to be invoked from the shell prompt,
# by people installing NetBSD.

# we know that /etc/fstab is only generated on the hard drive
dest_dir=/
if [ ! -f /etc/fstab ]; then
	dest_dir=/mnt/
fi

# counter for possible shared library confusion
TAR=/usr/bin/tar
GUNZIP=/usr/bin/gunzip

Set_tmp_dir()
{
	def_tmp_dir=`pwd`
	if [ "$def_tmp_dir" = "/" ] || [ "$def_tmp_dir" = "/mnt" ]; then
		def_tmp_dir="$dest_dir"usr/distrib
	fi

	echo -n	"What directory should be used to find and/or store "
	echo	"installation"
	echo -n	"files? [$def_tmp_dir] "
	read tmp_dir
	if [ "$tmp_dir" = "" ]; then
		tmp_dir=$def_tmp_dir
	fi
	if [ ! -d "$tmp_dir" ]; then
		/bin/rm -rf $tmp_dir
		mkdir -p $tmp_dir
	fi
}

Tmp_dir()
{
	if [ "$tmp_dir" = "" ]; then
		Set_tmp_dir
	fi
	cd $tmp_dir
}

Load_fd()
{
	Tmp_dir
	which=
	while [ "$which" != "a" ] && [ "$which" != "b" ]; do
		echo -n	"Read from which floppy drive ('a' or 'b')? [a] "
		read which
		if [ "X$which" = "X" ]; then
			which=a
		fi
	done
	while echo -n "Insert floppy (hit ^C to terminate, enter to load): "
	do
		mount -t msdos /dev/fd0$which /mnt2
		cp -rp /mnt2/* .
		umount /mnt2
	done
}

Load_tape()
{
	Tmp_dir
	echo -n	"Which tape drive will you be using? [rst0] "
	read which
	if [ "X$which" = "X" ]; then
		which=rst0
	fi
	echo -n "Insert the tape into the tape drive and hit return to "
	echo -n "continue..."
	read foo
	echo	"Extracting files from the tape..."
	$TAR --unlink -xvpf /dev/$which
	echo	"Done."
}

Extract()
{
	Tmp_dir
	echo -n "Would you like to list the files as they're extracted? [n] "
	read verbose
	case $verbose in
	y*|Y*)
		tarverbose=v
		;;
	*)
		tarverbose=
		;;
	esac
	cat "$1".?? | $GUNZIP | (cd $dest_dir ; $TAR --unlink -xp"$tarverbose"f -)
}
@


1.8
log
@netbsd.org->NetBSD.org
@
text
@d1 1
a1 1
# $NetBSD: dot.commonutils,v 1.7 2000/06/14 17:24:05 cgd Exp $
d52 1
a52 1
	if [ "$def_tmp_dir" = "/" -o "$def_tmp_dir" = "/mnt" ]; then
d81 1
a81 1
	while [ "$which" != "a" -a "$which" != "b" ]; do
@


1.8.102.1
log
@Pull up following revision(s) (requested by tsutsui in ticket #1514):

	distrib/atari/floppies/common/dot.profile: revision 1.9
	distrib/vax/inst-common/dot.commonutils: revision 1.6
	distrib/amiga/miniroot/dot.profile: revision 1.11
	distrib/utils/script-installer/dot.commonutils: revision 1.8
	distrib/amiga/floppies/inst-common/dot.commonutils: revision 1.9

Fix yet another "[: SMALL test, no fallback usage" error on installation.

The same problem as PR/54835 of the miniroot scripts, i.e.
avoid and replace use of -o binary primary marked obsolescent
by POSIX.1-2017:
 https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_12
8_16

Noticed on installation of NetBSD 9.3 on TT030, and
maybe should be pulled up to netbsd-9.

Avoid more obsolescent binary primaries not supported by crunched test(1).

See PR/54835 and PR/56983 for details.
@
text
@d1 1
a1 1
# $NetBSD: dot.commonutils,v 1.8 2003/07/26 17:06:29 salo Exp $
d52 1
a52 1
	if [ "$def_tmp_dir" = "/" ] || [ "$def_tmp_dir" = "/mnt" ]; then
d81 1
a81 1
	while [ "$which" != "a" ] && [ "$which" != "b" ]; do
@


1.8.32.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: dot.commonutils,v 1.8 2003/07/26 17:06:29 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.commonutils,v 1.6 2000/06/14 06:48:48 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.commonutils,v 1.5 1996/08/30 17:32:24 thorpej 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
@RCS id police.
@
text
@d1 1
a1 1
#	$NetBSD: $
a29 1
#
@


1.4
log
@merge in changes from 1.1 release branch
@
text
@d1 1
a30 1
#	$Id: dot.commonutils,v 1.3.2.1 1995/11/03 22:29:04 jtc Exp $
@


1.3
log
@update from  osymh@@gemini.oscs.montana.edu (Michael L. Hitch)
@
text
@d30 1
a30 1
#	$Id: dot.commonutils,v 1.2 1995/10/02 12:58:46 chopps Exp $
d105 1
a105 1
	$TAR xvpf --unlink /dev/$which
@


1.3.2.1
log
@Changed to use "$TAR --unlink -xvpf /dev/$which" in Load_tape.
@
text
@d30 1
a30 1
#	$Id: dot.commonutils,v 1.3 1995/10/09 02:41:31 chopps Exp $
d105 1
a105 1
	$TAR --unlink -xvpf /dev/$which
@


1.2
log
@update install stuff from osymh@@gemini.oscs.montana.edu (Michael L. Hitch)
@
text
@d30 1
a30 1
#	$Id: dot.commonutils,v 1.1.1.1 1994/08/29 15:30:23 cgd Exp $
d36 10
d50 1
a50 1
		def_tmp_dir=/mnt/usr/distrib
d54 1
a54 1
	echo	"installtion"
d105 1
a105 1
	tar xvfp /dev/$which
d122 1
a122 1
	cat "$1".?? | gunzip | (cd /mnt ; tar xfp$tarverbose -)
@


1.1
log
@Add amiga install floppy build stuff.
@
text
@d29 2
a30 2
$
$	$Id$
d112 1
a112 1
	cat "$1".??? | gunzip | (cd / ; tar xfp$tarverbose -)
@


1.1.2.1
log
@file dot.commonutils was added on branch netbsd-1-0 on 1994-10-06 20:25:51 +0000
@
text
@d1 113
@


1.1.2.2
log
@Add amiga install floppy build stuff.
@
text
@a0 113
#
# 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 by Christopher G. Demetriou.
# 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: dot.commonutils,v 1.1 1994/10/06 20:25:50 chopps Exp $

# Installation utilites (functions), to get NetBSD installed on
# the hard disk.  These are meant to be invoked from the shell prompt,
# by people installing NetBSD.

Set_tmp_dir()
{
	def_tmp_dir=`pwd`
	if [ "$def_tmp_dir" = "/" -o "$def_tmp_dir" = "/mnt" ]; then
		def_tmp_dir=/mnt/usr/distrib
	fi

	echo -n	"What directory should be used to find and/or store "
	echo	"installtion"
	echo -n	"files? [$def_tmp_dir] "
	read tmp_dir
	if [ "$tmp_dir" = "" ]; then
		tmp_dir=$def_tmp_dir
	fi
	if [ ! -d "$tmp_dir" ]; then
		/bin/rm -rf $tmp_dir
		mkdir -p $tmp_dir
	fi
}

Tmp_dir()
{
	if [ "$tmp_dir" = "" ]; then
		Set_tmp_dir
	fi
	cd $tmp_dir
}

Load_fd()
{
	Tmp_dir
	which=
	while [ "$which" != "a" -a "$which" != "b" ]; do
		echo -n	"Read from which floppy drive ('a' or 'b')? [a] "
		read which
		if [ "X$which" = "X" ]; then
			which=a
		fi
	done
	while echo -n "Insert floppy (hit ^C to terminate, enter to load): "
	do
		mount -t msdos /dev/fd0$which /mnt2
		cp -rp /mnt2/* .
		umount /mnt2
	done
}

Load_tape()
{
	Tmp_dir
	echo -n	"Which tape drive will you be using? [rst0] "
	read which
	if [ "X$which" = "X" ]; then
		which=rst0
	fi
	echo -n "Insert the tape into the tape drive and hit return to "
	echo -n "continue..."
	read foo
	echo	"Extracting files from the tape..."
	tar xvfp /dev/$which
	echo	"Done."
}

Extract()
{
	Tmp_dir
	echo -n "Would you like to list the files as they're extracted? [n] "
	read verbose
	case $verbose in
	y*|Y*)
		tarverbose=v
		;;
	*)
		tarverbose=
		;;
	esac
	cat "$1".??? | gunzip | (cd / ; tar xfp$tarverbose -)
}
@
