:
#	@(#) majorsinuse 23.2 91/05/22 
#
#	Copyright (C) 1986-1991 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#
#	majorsinuse: print out the major device numbers currently specified
#		     in the master file

cd `dirname $0`
[ "$ROOT" -o ! -f mdevice ] && cd $ROOT/etc/conf/cf.d

awk '{ if ( $1 == "*" || NF < 6 ) next ; { printf("%d\n%d\n", $5, $6)} }' mdevice | sort -n | uniq | tr '\012' ' '
echo
