#ident	"@(#)display	1.2"
#menu# display hard disk partitioning
#help# 
#help#	Display the partitioning of a hard disk.  Also shows the
#help#	hardware location of the selected disk.

flags="-qq -k$$"
trap 'exit 0' 1 2  15

while  true
do
	echo "
		Display disk partitions and vtoc

	Selection of a number 1 - 4 will cause the display of the
	partitions and the vtoc of the corresponding disk.  If the disk
	is not configured in the file /etc/partitions, an error message will
	be displayed.

		1 disk0    2 disk1     3 disk2     4 disk3

	Enter a number or q to quit:  "

	read sel;

	case "$sel" in 

		1)  
 		/etc/mkpart -t vp disk0
		echo Enter any key to continue:  
		read x
		;;
		2)  
 		/etc/mkpart -t vp disk1
		echo Enter any key to continue:  
		read x
		;;
		3)  
 		/etc/mkpart -t vp disk2
		echo Enter any key to continue:  
		read x
		;;
		4)  
 		/etc/mkpart -t vp disk3
		echo Enter any key to continue:  
		read x
		;;
		q)  
		exit 0
		;;
		*)
		echo "Invalid selection"
		echo Enter any key to continue:  
		read x
		;;

	esac
done
