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