1 # $NetBSD: MAKEDEV.conf,v 1.7 2003/12/14 19:09:34 he Exp $ 2 3 all_md) 4 makedev ct0 ct1 rd0 rd1 rd2 5 # makedev wscons # should be after 'std' 6 makedev sd0 sd1 sd2 cd0 cd1 st0 st1 ch0 7 makedev hil grf0 ite0 8 makedev ttyC0 ttyC1 ttyC2 ttyC3 9 makedev ttyM0 ttyM1 ttyM2 ttyM3 ttyM4 ttyM5 ttyM6 ttyM7 10 makedev ttyM8 ttyM9 ttyMa ttyMb ttyMc ttyMd ttyMe ttyMf 11 makedev scsibus0 scsibus1 scsibus2 scsibus3 12 makedev ss0 uk0 uk1 13 # Create symlinks for compatibility with old devices. 14 # These entries should be removed after 2.0-release. 15 makedev dca0 dcm0 dcm1 dcm2 dcm3 apci0 16 ;; 17 18 ct*) 19 case $i in 20 ct*) name=ct; unit=${i#ct}; blk=0; chr=7;; 21 esac 22 case $unit in 23 0|1|2|3|4|5|6|7) 24 four=$(($unit + 4)) ; eight=$(($unit + 8)) 25 twelve=$(($unit + 12)) ; twenty=$(($unit + 20)) 26 # 27 # block devices don't work so don't make them 28 #rm -f ${name}${unit} ${name}${four} ${name}${eight} \ 29 # ${name}${twelve} 30 #mknod ${name}${unit} b $blk $unit 31 #mknod ${name}${four} b $blk $four 32 #mknod ${name}${eight} b $blk $eight 33 #mknod ${name}${twelve} b $blk $twelve 34 #ln -fs ${name}{$four} n${name}${unit} ;: sanity w/pdp11 v7 35 #ln -fs ${name}{$twelve} n${name}${eight} ;: ditto 36 #chgrp operator ${name}${unit} ${name}${four} ${name}${eight} \ 37 # ${name}${twelve} n${name}${unit} n${name}${eight} 38 #chmod 660 ${name}${unit} ${name}${four} ${name}${eight} \ 39 # ${name}${twelve} n${name}${unit} n${name}${eight} 40 # 41 rm -f r${name}${unit} r${name}${four} r${name}${eight} \ 42 r${name}${twelve} 43 mknod r${name}${unit} c $chr $unit 44 mknod r${name}${four} c $chr $four 45 mknod r${name}${eight} c $chr $eight 46 mknod r${name}${twelve} c $chr $twelve 47 ln -fs r${name}${four} nr${name}${unit} ;: sanity w/pdp11 v7 48 ln -fs r${name}${twelve} nr${name}${eight} ;: ditto 49 chgrp operator r${name}${unit} r${name}${four} \ 50 r${name}${eight} r${name}${twelve} nr${name}${unit} \ 51 nr${name}${eight} 52 chmod 660 r${name}${unit} r${name}${four} \ 53 r${name}${eight} r${name}${twelve} nr${name}${unit} \ 54 nr${name}${eight} 55 ;; 56 *) 57 echo bad unit for tape in: $1 58 ;; 59 esac 60 ;; 61 62 hil) 63 for unit in 0 1 2 3 4 5 6 7 64 do 65 rm -f hil${unit} 66 mknod hil${unit} c 14 ${unit} 67 if [ -f /usr/sbin/hilinfo ] 68 then 69 case `/usr/sbin/hilinfo -t hil${unit}` in 70 mouse) 71 if [ ! -f locator ] 72 then 73 ln -fs hil${unit} locator 74 fi 75 ;; 76 keyboard) 77 if [ ! -f keyboard ] 78 then 79 ln -fs hil${unit} keyboard 80 fi 81 ;; 82 *) 83 ;; 84 esac 85 fi 86 done 87 if [ ! -f /usr/sbin/hilinfo ] 88 then 89 ln -fs hil1 keyboard 90 ln -fs hil3 locator 91 fi 92 chmod 666 hil* 93 # echo "hil: use $0.hpux to make HP-UX names for devices" 94 ;; 95 96 rd*) 97 name=rd; unit=${i#rd}; blk=2; chr=9 98 %MKDISK% $name $unit $blk $chr 99 ;; 100 101 ttyM*) 102 unit=${i#????} 103 case $unit in 104 [0-9]) i=$unit ;; 105 a) i=10 ;; 106 b) i=11 ;; 107 c) i=12 ;; 108 d) i=13 ;; 109 e) i=14 ;; 110 f) i=15 ;; 111 *) i=-1 ;; 112 esac 113 if [ $i = -1 ] 114 then 115 echo bad unit for ttyM in: $unit 116 break 117 fi 118 rm -f ttyM$unit 119 mknod ttyM$unit c 15 $i 120 chown uucp ttyM$unit 121 ;; 122 123 # Create symlinks for compatibility with old devices. 124 # The following entries should be removed after 2.0-release. 125 dca*) 126 # old MAKEDEV creates only tty0 for dca 127 unit=${i#dca} 128 case $unit in 129 0) 130 rm -f tty0 131 ln -fs ttyC0 tty0 132 ;; 133 *) 134 echo bad unit for dca in: $i 135 ;; 136 esac 137 ;; 138 139 dcm*) 140 unit=${i#dcm} 141 case $unit in 142 0|1|2|3) 143 for n in 0 1 2 3; do 144 in=$(($unit * 4 + $n)) 145 case $in in 146 [0-9]) i=$in ;; 147 10) i=a ;; 148 11) i=b ;; 149 12) i=c ;; 150 13) i=d ;; 151 14) i=e ;; 152 15) i=f ;; 153 esac 154 rm -f tty0${i}; 155 ln -fs ttyM${i} tty0${i} 156 done 157 ;; 158 *) 159 echo bad unit for dcm in: $i 160 ;; 161 esac 162 ;; 163 164 apci*) 165 # There exists only one Frodo ASIC per HP9000/400 SPU. 166 unit=${i#apci} 167 case $unit in 168 0) 169 for i in 0 1 2; do 170 rm -f ttya${i}; 171 ln -fs ttyC$(($i + 1)) ttya${i} 172 done 173 ;; 174 *) 175 echo bad unit for apci in: $i 176 ;; 177 esac 178 ;; 179 # end of entries for compatibility with old devices 180