head	1.3;
access;
symbols;
locks
	roger:1.3; strict;
comment	@# @;


1.3
date	92.11.16.12.47.35;	author md;	state Exp;
branches;
next	1.2;

1.2
date	92.03.26.17.15.40;	author md;	state Exp;
branches;
next	1.1;

1.1
date	88.12.09.22.53.55;	author md;	state Exp;
branches;
next	;


desc
@original AOS version
@


1.3
log
@fix location of sautil image.
@
text
@#!/bin/sh
#
# 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1986,1987
# LICENSED MATERIALS - PROPERTY OF IBM
# REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
#
# miniroot dev - build a boot diskette on "dev" mounted as "mnt"
#
# $Header: /usr/src/sys/dist/RCS/sautil,v 1.2 1992/03/26 17:15:40 md Exp md $
# $ACIS:sautil 12.0$
# $Source: /usr/src/sys/dist/RCS/sautil,v $
#
PATH=/etc:/usr/ucb:/bin:/usr/bin:/usr/ibm
export PATH
CMD=`basename $0`
device="${1-/dev/fd0}"

MISSING=
for i in /sys/rtstand/obj/boot.out
do
	test -f $i || MISSING="$MISSING $i"
done

case "$MISSING" in
"")	;;
*)	echo "$CMD:cannot find" $MISSING >&2
	exit 1;;
esac

if [ `whoami` != root ]
then
	echo "$CMD:can only be run by root" >&2
	exit 1
fi

# format $device,  install sautil
# fdformat will ask before formatting, in case $device is already formatted
fdformat -h $device
doswrite -f $device -i -b /sys/rtstand/obj/boot.out

@


1.2
log
@reno mods
@
text
@d9 1
a9 1
# $Header:sautil 12.0$
d11 1
a11 1
# $Source: /ibm/acis/usr/sys/dist/RCS/sautil,v $
d16 1
a16 1
device="${1-/dev/fd1}"
d19 1
a19 1
for i in /sys/rtstand/boot.out
d39 1
a39 1
doswrite -f $device -i -b /sys/rtstand/boot.out
@


1.1
log
@Initial revision
@
text
@d19 1
a19 1
for i in /sys/standca/boot.out
d38 2
a39 2
fdformat $device
doswrite -f $device -i -b /sys/standca/boot.out
@
