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