#! /bin/sh
# 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1987,1988
# LICENSED MATERIALS - PROPERTY OF IBM
# REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
# $Header:type.sh 1.1$ 
# $ACIS:type.sh 1.1$ 
# $Source: /ibm/acis/usr/sys/dist/etc/RCS/type.sh,v $ 
#
# usage: type device

case $# in
1)	device=$1;;
*)	/bin/echo "usage: type device" >&2
	exit 2;;
esac

size=0
blocksize=4
start=8
ncyl=12
ntrack=16
nsector=20
name=24

/etc/syscall ioctl 0 0x40286402 \&0 \; \
	write 1 \&${name} 8\; < ${device}
/bin/echo
