Home | History | Annotate | Line # | Download | only in etc.hp300
MAKEDEV.conf revision 1.2
      1  1.2  jdolecek #	$NetBSD: MAKEDEV.conf,v 1.2 2003/10/19 18:50:35 jdolecek Exp $
      2  1.1  jdolecek 
      3  1.1  jdolecek DISKPARTITIONS=8
      4  1.1  jdolecek 
      5  1.1  jdolecek MD_DEVICES=
      6  1.1  jdolecek all_md)
      7  1.1  jdolecek 	makedev ct0 ct1 rd0 rd1 rd
      8  1.1  jdolecek #	makedev wscons # should be after 'std'
      9  1.1  jdolecek 	makedev sd0 sd1 sd2 cd0 cd1 st0 st1 ch0
     10  1.1  jdolecek 	makedev hil grf0 ite0 dca0 dcm0 dcm1 dcm2 dcm3 apci0
     11  1.1  jdolecek 	makedev scsibus0 scsibus1 scsibus2 scsibus3
     12  1.1  jdolecek 	makedev ss0 uk0 uk1
     13  1.1  jdolecek 	;;
     14  1.1  jdolecek 
     15  1.1  jdolecek ct*)
     16  1.1  jdolecek 	case $i in
     17  1.1  jdolecek 	ct*) name=ct; unit=${i#ct}; blk=0; chr=7;;
     18  1.1  jdolecek 	esac
     19  1.1  jdolecek 	case $unit in
     20  1.1  jdolecek 	0|1|2|3|4|5|6|7)
     21  1.1  jdolecek 		four=$(($unit + 4)) ; eight=$(($unit + 8))
     22  1.1  jdolecek 		twelve=$(($unit + 12)) ; twenty=$(($unit + 20))
     23  1.1  jdolecek 		#
     24  1.1  jdolecek 		# block devices don't work so don't make them
     25  1.1  jdolecek 		#rm -f ${name}${unit} ${name}${four} ${name}${eight} \
     26  1.1  jdolecek 		#    ${name}${twelve}
     27  1.1  jdolecek 		#mknod ${name}${unit}	b $blk $unit
     28  1.1  jdolecek 		#mknod ${name}${four}	b $blk $four
     29  1.1  jdolecek 		#mknod ${name}${eight}	b $blk $eight
     30  1.1  jdolecek 		#mknod ${name}${twelve}	b $blk $twelve
     31  1.1  jdolecek 		#ln -fs ${name}{$four} n${name}${unit}	;: sanity w/pdp11 v7
     32  1.1  jdolecek 		#ln -fs ${name}{$twelve} n${name}${eight}	;: ditto
     33  1.1  jdolecek 		#chgrp operator ${name}${unit} ${name}${four} ${name}${eight} \
     34  1.1  jdolecek 		#    ${name}${twelve} n${name}${unit} n${name}${eight}
     35  1.1  jdolecek 		#chmod 660 ${name}${unit} ${name}${four} ${name}${eight} \
     36  1.1  jdolecek 		#    ${name}${twelve} n${name}${unit} n${name}${eight}
     37  1.1  jdolecek 		#
     38  1.1  jdolecek 		rm -f r${name}${unit} r${name}${four} r${name}${eight} \
     39  1.1  jdolecek 		    r${name}${twelve}
     40  1.1  jdolecek 		mknod r${name}${unit}	c $chr $unit
     41  1.1  jdolecek 		mknod r${name}${four}	c $chr $four
     42  1.1  jdolecek 		mknod r${name}${eight}	c $chr $eight
     43  1.1  jdolecek 		mknod r${name}${twelve}	c $chr $twelve
     44  1.1  jdolecek 		ln -fs r${name}${four} nr${name}${unit}	;: sanity w/pdp11 v7
     45  1.1  jdolecek 		ln -fs r${name}${twelve} nr${name}${eight}	;: ditto
     46  1.1  jdolecek 		chgrp operator r${name}${unit} r${name}${four} \
     47  1.1  jdolecek 		    r${name}${eight} r${name}${twelve} nr${name}${unit} \
     48  1.1  jdolecek 		    nr${name}${eight}
     49  1.1  jdolecek 		chmod 660 r${name}${unit} r${name}${four} \
     50  1.1  jdolecek 		    r${name}${eight} r${name}${twelve} nr${name}${unit} \
     51  1.1  jdolecek 		    nr${name}${eight}
     52  1.1  jdolecek 		;;
     53  1.1  jdolecek 	*)
     54  1.1  jdolecek 		echo bad unit for tape in: $1
     55  1.1  jdolecek 		;;
     56  1.1  jdolecek 	esac
     57  1.1  jdolecek 	;;
     58  1.1  jdolecek 
     59  1.1  jdolecek dca*)
     60  1.1  jdolecek 	# XXX What about dca cards?
     61  1.1  jdolecek 	unit=${i#dca}
     62  1.1  jdolecek 	case $unit in
     63  1.1  jdolecek 	0)
     64  1.1  jdolecek 		rm -f tty0
     65  1.1  jdolecek 		mknod tty0 c 12 0
     66  1.1  jdolecek 		;;
     67  1.1  jdolecek 	*)
     68  1.1  jdolecek 		echo bad unit for dca in: $i
     69  1.1  jdolecek 		;;
     70  1.1  jdolecek 	esac
     71  1.1  jdolecek 	;;
     72  1.1  jdolecek 
     73  1.1  jdolecek dcm*)
     74  1.1  jdolecek 	unit=${i#dcm}
     75  1.1  jdolecek 	case $unit in
     76  1.1  jdolecek 	0|1|2|3)
     77  1.1  jdolecek 		eval `echo $unit | awk ' { unit = $1; u = 4 * $1 } END {
     78  1.1  jdolecek 		for (i = 0; i < 4; i++)
     79  1.1  jdolecek 		printf("rm -f tty0%x; mknod tty0%x c 15 %d; ",u+i,u+i,u+i); }'`
     80  1.1  jdolecek 		;;
     81  1.1  jdolecek 	*)
     82  1.1  jdolecek 		echo bad unit for dcm in: $i
     83  1.1  jdolecek 		;;
     84  1.1  jdolecek 	esac
     85  1.1  jdolecek 	;;
     86  1.1  jdolecek 
     87  1.1  jdolecek apci*)
     88  1.1  jdolecek 	# There exists only one Frodo ASIC per HP9000/400 SPU.
     89  1.1  jdolecek 	unit=${i#apci}
     90  1.1  jdolecek 	case $unit in
     91  1.1  jdolecek 	0)
     92  1.1  jdolecek 		for i in 0 1 2 3; do
     93  1.1  jdolecek 			rm -f ttya${i};
     94  1.1  jdolecek 			mknod ttya${i} c 31 ${i}
     95  1.1  jdolecek 		done
     96  1.1  jdolecek 		;;
     97  1.1  jdolecek 	*)
     98  1.1  jdolecek 		echo bad unit for apci in: $i
     99  1.1  jdolecek 		;;
    100  1.1  jdolecek 	esac
    101  1.1  jdolecek 	;;
    102  1.1  jdolecek 
    103  1.1  jdolecek hil)
    104  1.1  jdolecek 	for unit in 0 1 2 3 4 5 6 7
    105  1.1  jdolecek 	do
    106  1.1  jdolecek 		rm -f hil${unit}
    107  1.1  jdolecek 		mknod hil${unit} c 14 ${unit}
    108  1.1  jdolecek 		if [ -f /usr/sbin/hilinfo ]
    109  1.1  jdolecek 		then
    110  1.1  jdolecek 			case `/usr/sbin/hilinfo -t hil${unit}` in
    111  1.1  jdolecek 			mouse)
    112  1.1  jdolecek 				if [ ! -f locator ]
    113  1.1  jdolecek 				then
    114  1.1  jdolecek 					ln -fs hil${unit} locator
    115  1.1  jdolecek 				fi
    116  1.1  jdolecek 				;;
    117  1.1  jdolecek 			keyboard)
    118  1.1  jdolecek 				if [ ! -f keyboard ]
    119  1.1  jdolecek 				then
    120  1.1  jdolecek 					ln -fs hil${unit} keyboard
    121  1.1  jdolecek 				fi
    122  1.1  jdolecek 				;;
    123  1.1  jdolecek 			*)
    124  1.1  jdolecek 				;;
    125  1.1  jdolecek 			esac
    126  1.1  jdolecek 		fi
    127  1.1  jdolecek 	done
    128  1.1  jdolecek 	if [ ! -f /usr/sbin/hilinfo ]
    129  1.1  jdolecek 	then
    130  1.1  jdolecek 		ln -fs hil1 keyboard
    131  1.1  jdolecek 		ln -fs hil3 locator
    132  1.1  jdolecek 	fi
    133  1.1  jdolecek 	chmod 666 hil*
    134  1.1  jdolecek #	echo "hil: use $0.hpux to make HP-UX names for devices"
    135  1.1  jdolecek 	;;
    136