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

Diff for /src/etc/MAKEDEV.mi between version 1.4 and 1.5

version 1.4, 2002/01/07 06:13:30 version 1.5, 2002/01/07 06:25:32
Line 575 
Line 575 
 divert(1)dnl  divert(1)dnl
 include(etc.MACHINE/MAKEDEV.md)dnl  include(etc.MACHINE/MAKEDEV.md)dnl
 dnl  dnl
 dnl define DISK_STEPPING in the above file if other than 16  
 dnl  dnl
 ifdef({-DISK_STEPPING-},,{-define({-DISK_STEPPING-},{-16-})-})dnl  
 dnl  
 divert(0)dnl  divert(0)dnl
 #!/bin/sh -  #!/bin/sh -
 #  #
Line 635 
Line 632 
         echo $arg          echo $arg
 }  }
 dnl  dnl
 dnl dodisk(name,unit,blkmaj,chrmaj,unit,off)  dnl dodisk(name,unit,blkmaj,chrmaj,unit,off[,stepping])
   dnl   arg: 1    2    3      4      5    6    7
 dnl  dnl
 dodisk()  dodisk()
 {  {
         n=Add(Mult(${5},DISK_STEPPING),${6}) count=0          n=Add(Mult(${5},${7:-16}),${6}) count=0
         RMlist="$RMlist {-$-}1{-$-}2? r{-$-}1{-$-}2?"          RMlist="$RMlist {-$-}1{-$-}2? r{-$-}1{-$-}2?"
         for d in a b c d e f g h i j k l m n o p          for d in a b c d e f g h i j k l m n o p
         do          do
Line 650 
Line 648 
         MKlist="$MKlist;chown root.operator {-$-}1{-$-}2? r{-$-}1{-$-}2?"          MKlist="$MKlist;chown root.operator {-$-}1{-$-}2? r{-$-}1{-$-}2?"
 }  }
 dnl  dnl
 dnl dodisk2(name,unit,blkmaj,chrmaj,unit,off)  dnl dodisk2(name,unit,blkmaj,chrmaj,unit,off[,stepping])
 dnl  dnl
 dnl 1. name    - prefix name of the device  dnl 1. name    - prefix name of the device
 dnl 2. unit    - beginning unit number for block devices  dnl 2. unit    - beginning unit number for block devices
Line 658 
Line 656 
 dnl 4. chrmaj  - character device major number  dnl 4. chrmaj  - character device major number
 dnl 5. unit    - beginning unit number for character devices  dnl 5. unit    - beginning unit number for character devices
 dnl 6. off     - offset from 0 for all minor numbers (see svnd for an example)  dnl 6. off     - offset from 0 for all minor numbers (see svnd for an example)
   dnl 7. step    - optional, defaults to 16, number of partitions per device
 dnl  dnl
 dodisk2()  dodisk2()
 {  {
         n=Add(Mult({-$-}5,DISK_STEPPING),{-$-}6)          n=Add(Mult({-$-}5,${7:-16}),{-$-}6)
         M {-$-}1{-$-}2a b {-$-}3 $n 640 operator          M {-$-}1{-$-}2a b {-$-}3 $n 640 operator
         M r{-$-}1{-$-}2a c {-$-}4 $n 640 operator          M r{-$-}1{-$-}2a c {-$-}4 $n 640 operator
         n=Add($n,2)          n=Add($n,2)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5