Home | History | Annotate | Line # | Download | only in etc.hp300
MAKEDEV.conf revision 1.1
      1  1.1  jdolecek #	$NetBSD: MAKEDEV.conf,v 1.1 2003/10/15 19:13:32 jdolecek Exp $
      2  1.1  jdolecek #
      3  1.1  jdolecek # Copyright (c) 1990 The Regents of the University of California.
      4  1.1  jdolecek # All rights reserved.
      5  1.1  jdolecek #
      6  1.1  jdolecek # Redistribution and use in source and binary forms, with or without
      7  1.1  jdolecek # modification, are permitted provided that the following conditions
      8  1.1  jdolecek # are met:
      9  1.1  jdolecek # 1. Redistributions of source code must retain the above copyright
     10  1.1  jdolecek #    notice, this list of conditions and the following disclaimer.
     11  1.1  jdolecek # 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  jdolecek #    notice, this list of conditions and the following disclaimer in the
     13  1.1  jdolecek #    documentation and/or other materials provided with the distribution.
     14  1.1  jdolecek # 3. All advertising materials mentioning features or use of this software
     15  1.1  jdolecek #    must display the following acknowledgement:
     16  1.1  jdolecek #	This product includes software developed by the University of
     17  1.1  jdolecek #	California, Berkeley and its contributors.
     18  1.1  jdolecek # 4. Neither the name of the University nor the names of its contributors
     19  1.1  jdolecek #    may be used to endorse or promote products derived from this software
     20  1.1  jdolecek #    without specific prior written permission.
     21  1.1  jdolecek #
     22  1.1  jdolecek # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     23  1.1  jdolecek # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     24  1.1  jdolecek # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     25  1.1  jdolecek # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     26  1.1  jdolecek # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     27  1.1  jdolecek # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     28  1.1  jdolecek # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     29  1.1  jdolecek # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     30  1.1  jdolecek # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     31  1.1  jdolecek # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     32  1.1  jdolecek # SUCH DAMAGE.
     33  1.1  jdolecek #
     34  1.1  jdolecek #	@(#)MAKEDEV	5.5 (Berkeley) 5/28/91
     35  1.1  jdolecek 
     36  1.1  jdolecek DISKPARTITIONS=8
     37  1.1  jdolecek 
     38  1.1  jdolecek MD_DEVICES=
     39  1.1  jdolecek all_md)
     40  1.1  jdolecek 	makedev ct0 ct1 rd0 rd1 rd
     41  1.1  jdolecek #	makedev wscons # should be after 'std'
     42  1.1  jdolecek 	makedev sd0 sd1 sd2 cd0 cd1 st0 st1 ch0
     43  1.1  jdolecek 	makedev hil grf0 ite0 dca0 dcm0 dcm1 dcm2 dcm3 apci0
     44  1.1  jdolecek 	makedev scsibus0 scsibus1 scsibus2 scsibus3
     45  1.1  jdolecek 	makedev ss0 uk0 uk1
     46  1.1  jdolecek 	;;
     47  1.1  jdolecek 
     48  1.1  jdolecek ct*)
     49  1.1  jdolecek 	case $i in
     50  1.1  jdolecek 	ct*) name=ct; unit=${i#ct}; blk=0; chr=7;;
     51  1.1  jdolecek 	esac
     52  1.1  jdolecek 	case $unit in
     53  1.1  jdolecek 	0|1|2|3|4|5|6|7)
     54  1.1  jdolecek 		four=$(($unit + 4)) ; eight=$(($unit + 8))
     55  1.1  jdolecek 		twelve=$(($unit + 12)) ; twenty=$(($unit + 20))
     56  1.1  jdolecek 		#
     57  1.1  jdolecek 		# block devices don't work so don't make them
     58  1.1  jdolecek 		#rm -f ${name}${unit} ${name}${four} ${name}${eight} \
     59  1.1  jdolecek 		#    ${name}${twelve}
     60  1.1  jdolecek 		#mknod ${name}${unit}	b $blk $unit
     61  1.1  jdolecek 		#mknod ${name}${four}	b $blk $four
     62  1.1  jdolecek 		#mknod ${name}${eight}	b $blk $eight
     63  1.1  jdolecek 		#mknod ${name}${twelve}	b $blk $twelve
     64  1.1  jdolecek 		#ln -fs ${name}{$four} n${name}${unit}	;: sanity w/pdp11 v7
     65  1.1  jdolecek 		#ln -fs ${name}{$twelve} n${name}${eight}	;: ditto
     66  1.1  jdolecek 		#chgrp operator ${name}${unit} ${name}${four} ${name}${eight} \
     67  1.1  jdolecek 		#    ${name}${twelve} n${name}${unit} n${name}${eight}
     68  1.1  jdolecek 		#chmod 660 ${name}${unit} ${name}${four} ${name}${eight} \
     69  1.1  jdolecek 		#    ${name}${twelve} n${name}${unit} n${name}${eight}
     70  1.1  jdolecek 		#
     71  1.1  jdolecek 		rm -f r${name}${unit} r${name}${four} r${name}${eight} \
     72  1.1  jdolecek 		    r${name}${twelve}
     73  1.1  jdolecek 		mknod r${name}${unit}	c $chr $unit
     74  1.1  jdolecek 		mknod r${name}${four}	c $chr $four
     75  1.1  jdolecek 		mknod r${name}${eight}	c $chr $eight
     76  1.1  jdolecek 		mknod r${name}${twelve}	c $chr $twelve
     77  1.1  jdolecek 		ln -fs r${name}${four} nr${name}${unit}	;: sanity w/pdp11 v7
     78  1.1  jdolecek 		ln -fs r${name}${twelve} nr${name}${eight}	;: ditto
     79  1.1  jdolecek 		chgrp operator r${name}${unit} r${name}${four} \
     80  1.1  jdolecek 		    r${name}${eight} r${name}${twelve} nr${name}${unit} \
     81  1.1  jdolecek 		    nr${name}${eight}
     82  1.1  jdolecek 		chmod 660 r${name}${unit} r${name}${four} \
     83  1.1  jdolecek 		    r${name}${eight} r${name}${twelve} nr${name}${unit} \
     84  1.1  jdolecek 		    nr${name}${eight}
     85  1.1  jdolecek 		;;
     86  1.1  jdolecek 	*)
     87  1.1  jdolecek 		echo bad unit for tape in: $1
     88  1.1  jdolecek 		;;
     89  1.1  jdolecek 	esac
     90  1.1  jdolecek 	;;
     91  1.1  jdolecek 
     92  1.1  jdolecek dca*)
     93  1.1  jdolecek 	# XXX What about dca cards?
     94  1.1  jdolecek 	unit=${i#dca}
     95  1.1  jdolecek 	case $unit in
     96  1.1  jdolecek 	0)
     97  1.1  jdolecek 		rm -f tty0
     98  1.1  jdolecek 		mknod tty0 c 12 0
     99  1.1  jdolecek 		;;
    100  1.1  jdolecek 	*)
    101  1.1  jdolecek 		echo bad unit for dca in: $i
    102  1.1  jdolecek 		;;
    103  1.1  jdolecek 	esac
    104  1.1  jdolecek 	;;
    105  1.1  jdolecek 
    106  1.1  jdolecek dcm*)
    107  1.1  jdolecek 	unit=${i#dcm}
    108  1.1  jdolecek 	case $unit in
    109  1.1  jdolecek 	0|1|2|3)
    110  1.1  jdolecek 		eval `echo $unit | awk ' { unit = $1; u = 4 * $1 } END {
    111  1.1  jdolecek 		for (i = 0; i < 4; i++)
    112  1.1  jdolecek 		printf("rm -f tty0%x; mknod tty0%x c 15 %d; ",u+i,u+i,u+i); }'`
    113  1.1  jdolecek 		;;
    114  1.1  jdolecek 	*)
    115  1.1  jdolecek 		echo bad unit for dcm in: $i
    116  1.1  jdolecek 		;;
    117  1.1  jdolecek 	esac
    118  1.1  jdolecek 	;;
    119  1.1  jdolecek 
    120  1.1  jdolecek apci*)
    121  1.1  jdolecek 	# There exists only one Frodo ASIC per HP9000/400 SPU.
    122  1.1  jdolecek 	unit=${i#apci}
    123  1.1  jdolecek 	case $unit in
    124  1.1  jdolecek 	0)
    125  1.1  jdolecek 		for i in 0 1 2 3; do
    126  1.1  jdolecek 			rm -f ttya${i};
    127  1.1  jdolecek 			mknod ttya${i} c 31 ${i}
    128  1.1  jdolecek 		done
    129  1.1  jdolecek 		;;
    130  1.1  jdolecek 	*)
    131  1.1  jdolecek 		echo bad unit for apci in: $i
    132  1.1  jdolecek 		;;
    133  1.1  jdolecek 	esac
    134  1.1  jdolecek 	;;
    135  1.1  jdolecek 
    136  1.1  jdolecek hil)
    137  1.1  jdolecek 	for unit in 0 1 2 3 4 5 6 7
    138  1.1  jdolecek 	do
    139  1.1  jdolecek 		rm -f hil${unit}
    140  1.1  jdolecek 		mknod hil${unit} c 14 ${unit}
    141  1.1  jdolecek 		if [ -f /usr/sbin/hilinfo ]
    142  1.1  jdolecek 		then
    143  1.1  jdolecek 			case `/usr/sbin/hilinfo -t hil${unit}` in
    144  1.1  jdolecek 			mouse)
    145  1.1  jdolecek 				if [ ! -f locator ]
    146  1.1  jdolecek 				then
    147  1.1  jdolecek 					ln -fs hil${unit} locator
    148  1.1  jdolecek 				fi
    149  1.1  jdolecek 				;;
    150  1.1  jdolecek 			keyboard)
    151  1.1  jdolecek 				if [ ! -f keyboard ]
    152  1.1  jdolecek 				then
    153  1.1  jdolecek 					ln -fs hil${unit} keyboard
    154  1.1  jdolecek 				fi
    155  1.1  jdolecek 				;;
    156  1.1  jdolecek 			*)
    157  1.1  jdolecek 				;;
    158  1.1  jdolecek 			esac
    159  1.1  jdolecek 		fi
    160  1.1  jdolecek 	done
    161  1.1  jdolecek 	if [ ! -f /usr/sbin/hilinfo ]
    162  1.1  jdolecek 	then
    163  1.1  jdolecek 		ln -fs hil1 keyboard
    164  1.1  jdolecek 		ln -fs hil3 locator
    165  1.1  jdolecek 	fi
    166  1.1  jdolecek 	chmod 666 hil*
    167  1.1  jdolecek #	echo "hil: use $0.hpux to make HP-UX names for devices"
    168  1.1  jdolecek 	;;
    169