[BACK]Return to MAKEDEV.mi CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/MAKEDEV.mi between version 1.29 and 1.30

version 1.29, 2002/02/14 05:38:22 version 1.30, 2002/02/14 14:32:26
Line 451 
Line 451 
 target(ramd, pty, 0)dnl  target(ramd, pty, 0)dnl
 -})dnl  -})dnl
 ifelse(MACHINE, vax, {-  ifelse(MACHINE, vax, {-
   __devitem(dhu, dhu*, unibus dhu11)dnl
   __devitem(dmz, dmz*, unibus dmz32)dnl
   __devitem(dmf, dmf*, unibus dmf32)dnl
   __devitem(dh, dh*, {-unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11)-})
   __devitem(vt, vt*, {-console-})dnl
   __devitem(dz, dz*, unibus dz11 and dz32)dnl
   _mkdev(dz, dz*,
   {-unit=${i#dz};
          case $unit in
          [0-7])
                  i=0
                  while [ $i -lt 8 ]; do
                          no=$(($unit * 8 + $i))
                          if [ $no -lt 10 ]; then
                                  no="0${no}"
                          fi
                          rm -f tty${no}
                          mknod tty${no} c 1 $no
                          i=$(($i + 1))
                  done
                  ;;
           *)
                  echo bad unit for dz in: $i
                  ;;
          esac-})dnl
   dnl XXX split this up abit?
   _mkdev(dhu, dhu*|dmz*|dmf*|dh*,
   {-set -A cnvtbl 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v
           case $i in
           vt*)    name=vt; major=68; count=8;
                   unit=${i#vt}
                   case $unit in
                   0) ch=w ;;
                   *) echo bad unit for $name in: $i ;;
                   esac;;
           dmz*)   name=dmz; major=37; count=24;
                   unit=${i#dmz}
                   case $unit in
                   0) ch=a ;; 1) ch=b ;; 2) ch=c ;; 3) ch=e ;; 4) ch=f ;;
                   *) echo bad unit for $name in: $i ;;
                   esac;;
           dmf*)   name=dmf; major=22; count=8;
                   unit=${i#dmf}
                   case $unit in
                   0) ch=A ;; 1) ch=B ;; 2) ch=C ;; 3) ch=E ;;
                   4) ch=F ;; 5) ch=G ;; 6) ch=H ;; 7) ch=I ;;
                   *) echo bad unit for $name in: $i ;;
                   esac;;
           dhu*)   name=dhu; major=34; count=16;
                   unit=${i#dhu}
                   case $unit in
                   0) ch=S ;; 1) ch=T ;; 2) ch=U ;; 3) ch=V ;;
                   4) ch=W ;; 5) ch=X ;; 6) ch=Y ;; 7) ch=Z ;;
                   *) echo bad unit for $name in: $i ;;
                   esac;;
           dh*)    name=dh; major=12; count=16;
                   unit=${i#dh}
                   case $unit in
                   0) ch=h ;; 1) ch=i ;; 2) ch=j ;; 3) ch=k ;;
                   4) ch=l ;; 5) ch=m ;; 6) ch=n ;; 7) ch=o ;;
                   *) echo bad unit for $name in: $i ;;
                   esac;;
           esac
           i=0
           while [ $i -lt $count ]; do
                   let=${cnvtbl[$i]}
                   if [ -n "$let" ] ;then
                           rm -f tty${ch}${let}
                           mknod tty${ch}${let} c $major $(($unit * $count + $i))
                   else
                           echo bad count for ${name}: $unit, $count, $i
                   fi
                   i=$(($i + 1))
           done
           ;;
   
   dl*)
           unit=${i#dl}
           major=66
           let=${cnvtbl[$unit]}
           if [ -n "$let" ] ;then
                   rm -f ttyJ${let}
                   mknod ttyJ${let} c $major $unit
           else
                   echo bad number for ${name}: $unit
           fi-})dnl
   dnl
 target( all, hd, 0, 1, 2)dnl  target( all, hd, 0, 1, 2)dnl
   target( all, mt, 0)dnl
   target( all, uu, 0)dnl
   target( all, st, 0)dnl
   target( all, dhu, 0)dnl
   target( all, dmz, 0)dnl
   target( all, dmf, 0)dnl
   target( all, dh, 0)dnl
   target( all, dz, 0)dnl
 target(ramd, fd, 0)dnl  target(ramd, fd, 0)dnl
 target(ramd, sd, 0, 1, 2, 3)dnl  target(ramd, sd, 0, 1, 2, 3)dnl
 target(ramd, rd, 0)dnl  target(ramd, rd, 0)dnl
Line 952 
Line 1047 
 dnl  dnl
 ifelse(1, 0,  ifelse(1, 0,
 [ "${mklist[{-$-}1]}" ] && mklist[{-$-}1]="${mklist[{-$-}1]} {-$-}2 {-$-}3 {-$-}4 {-$-}5" || {  [ "${mklist[{-$-}1]}" ] && mklist[{-$-}1]="${mklist[{-$-}1]} {-$-}2 {-$-}3 {-$-}4 {-$-}5" || {
           mklist[{-$-}1]="mknod -m {-$-}1 {-$-}2 {-$-}3 {-$-}4 {-$-}5"            mklist[{-$-}1]="mknod -m {-$-}1 {-$-}2 {-$-}3 {-$-}4 {-$-}5"
           modes="$modes {-$-}1"            modes="$modes {-$-}1"
      },       },
 dnl  dnl
 dnl non multi mknod  dnl non multi mknod

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30