# @(#)install:badspots/readdinit	35.2
# Read Dinit(1M) Bad Spot List Method Description
# Copyright 1988, Motorola, Inc.

BadSpotsName=readdinit
BadSpotsLetter=d
BadSpotsTitle="Read disk-resident dinit(1) bad spots list."
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.

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
			: Success
		else
			0<<DONE 1>&2 cat -

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

DONE
			false
		fi
!!!
!!!!`
