# @(#)install:badspots/appenddinit	35.2
# Read And Append To Dinit(1M) Bad Spots List Method Description
# Copyright 1988, Motorola, Inc.

BadSpotsName=appenddinit
BadSpotsLetter=a
BadSpotsTitle="Read dinit(1) bad spots list and append user entries."
BadSpotsDescription=`0<<!!! cat -

Choosing this method will cause the dinit(1M) utility to be
executed with the hyphen-r (-r) command line switch in order
to read the disk-resident bad spots list.  Once obtained from
the disk the user is prompted for additional bad spots which
are to be appended to the list.

Errors in utilizing this method are indicative of a disk which
has never been formatted, or one which has lost its format.

!!!`
BadSpotsScript=`0<<!!!! cat -
0<<!!! cat -
		if 1>\\\\\\${BadSpotsDirectory}/\\\\\\${RootDevice} \\\\\\\\
dinit -r \\\\\\${RootDiskDdefsName} /dev/rdsk/\\\\\\${RootDevice}s7
		then
			appendSpots=true
		else
			0<<DONE 1>&2 cat -

ERROR: Read dinit(1M) bad spots list from drive failed.

DONE
			false
		fi
!!!
!!!!`
