Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Correct md* entries.



details:   https://anonhg.NetBSD.org/src/rev/c9672a189fce
branches:  trunk
changeset: 479687:c9672a189fce
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 18 03:09:44 1999 +0000

description:
Correct md* entries.

diffstat:

 etc/etc.alpha/MAKEDEV    |  18 +++++++++++++-----
 etc/etc.amiga/MAKEDEV    |  12 +++++++++++-
 etc/etc.arm32/MAKEDEV    |  17 +++++++++++++----
 etc/etc.atari/MAKEDEV    |  18 ++++++++++--------
 etc/etc.bebox/MAKEDEV    |  23 +++++++++--------------
 etc/etc.hp300/MAKEDEV    |  13 ++++++++++++-
 etc/etc.hpcmips/MAKEDEV  |  25 ++++++++++---------------
 etc/etc.i386/MAKEDEV     |  25 ++++++++++---------------
 etc/etc.mac68k/MAKEDEV   |  25 ++++++++++---------------
 etc/etc.macppc/MAKEDEV   |  25 ++++++++++---------------
 etc/etc.mvme68k/MAKEDEV  |  19 +++++++++----------
 etc/etc.news68k/MAKEDEV  |  17 +++++++++--------
 etc/etc.newsmips/MAKEDEV |  17 +++++++++--------
 etc/etc.next68k/MAKEDEV  |  23 +++++++++--------------
 etc/etc.pc532/MAKEDEV    |  19 +++++++++----------
 etc/etc.pmax/MAKEDEV     |  16 +++++++++++++---
 etc/etc.sparc/MAKEDEV    |  26 +++++++++-----------------
 etc/etc.sparc64/MAKEDEV  |  26 +++++++++-----------------
 etc/etc.sun3/MAKEDEV     |   4 ++--
 etc/etc.vax/MAKEDEV      |  23 +++++++++--------------
 etc/etc.x68k/MAKEDEV     |  23 +++++++++--------------
 21 files changed, 204 insertions(+), 210 deletions(-)

diffs (truncated from 939 to 300 lines):

diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.alpha/MAKEDEV
--- a/etc/etc.alpha/MAKEDEV     Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.alpha/MAKEDEV     Sat Dec 18 03:09:44 1999 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV,v 1.53 1999/10/19 23:19:38 dan Exp $
+#      $NetBSD: MAKEDEV,v 1.54 1999/12/18 03:09:44 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -57,7 +57,7 @@
 # Disks:
 #      ccd*    concatenated disk driver
 #      cd*     SCSI CD-ROM
-#      md*     memory pseudo-disks
+#      md*     memory pseudo-disk devices
 #      raid*   RAIDframe disk driver
 #      sd*     ATAPI and SCSI disks
 #      vnd*    file pseudo-disks
@@ -242,13 +242,21 @@
        chmod 666 fd/*
        ;;
 
-ccd*|cd*|fd*|md*|raid*|sd*|vnd*|wd*)
+md*)
+       unit=${i#md}; blk=6; chr=28;
+       rm -f md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 8))
+       mknod md${unit}c b $blk $((($unit + 16) * 8))
+#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
+       ;;      
+
+ccd*|cd*|fd*|raid*|sd*|vnd*|wd*)
        case $i in
        ccd*)   name=ccd;       unit=${i#ccd};  blk=7; chr=27;;
        cd*)    name=cd;        unit=${i#cd};   blk=3; chr=13;;
        fd*)    name=fd;        unit=${i#fd};   blk=0; chr=34;;
-       md*)    name=md;        unit=${i#md};   blk=6; chr=28;;
-       raid*)  name=raid;      unit=${i#raid}; blk=16; chr=43;;
        sd*)    name=sd;        unit=${i#sd};   blk=8; chr=8;;
        vnd*)   name=vnd;       unit=${i#vnd};  blk=9; chr=9;;
        wd*)    name=wd;        unit=${i#wd};   blk=4; chr=36;;
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.amiga/MAKEDEV
--- a/etc/etc.amiga/MAKEDEV     Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.amiga/MAKEDEV     Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.52 1999/10/18 22:41:24 ad Exp $
+#      $NetBSD: MAKEDEV,v 1.53 1999/12/18 03:09:45 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -62,6 +62,7 @@
 #      vnd*    "file" pseudo-disks
 #      ccd*    concatenated disk driver
 #      raid*   RAIDframe disk driver
+#      md*     memory pseudo-disk devices
 #
 # Console ports:
 #      ttye*   ite bitmapped consoles
@@ -187,6 +188,15 @@
                ;;
        esac
        ;;
+md*)
+       unit={$i#md}; blk=15; chr=43;
+       rm -rf md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 16))
+       mknod md${unit}c b $blk $((($unit + 16) * 16))
+#      mknod rmd${unit} c $chr $((($unit + 16) * 16))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
+       ;;
 
 sd*|vnd*|ccd*|raid*)
        case $i in
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.arm32/MAKEDEV
--- a/etc/etc.arm32/MAKEDEV     Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.arm32/MAKEDEV     Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.43 1999/10/18 22:41:25 ad Exp $
+#      $NetBSD: MAKEDEV,v 1.44 1999/12/18 03:09:45 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -48,7 +48,7 @@
 #      sd*     SCSI disks
 #      cd*     SCSI CD-ROM
 #      vnd*    "file" pseudo-disks
-#      md*     "memory" pseudo-disks
+#      md*     memory pseudo-disk devices
 #      ccd*    contatenated disk devices
 #      raid*   RAIDframe disk driver
 #
@@ -237,11 +237,20 @@
        chmod 666 fd/*
        ;;
 
-ccd*|fd*|md*|raid*|sd*|vnd*|wd*)
+md*)
+       unit=${i#md}; blk=18; chr=18;
+       rm -f md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 8))
+       mknod md${unit}c b $blk $((($unit + 16) * 8))
+#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
+       ;;
+
+ccd*|fd*|raid*|sd*|vnd*|wd*)
        case $i in
        ccd*) name=ccd; unit=${i#ccd};  blk=21; chr=21;;
        fd*) name=fd;   unit=${i#fd};   blk=17; chr=17;;
-       md*) name=md;   unit=${i#md};   blk=18; chr=18;;
        raid*) name=raid;       unit=${i#raid}; blk=71; chr=71;;
        sd*) name=sd;   unit=${i#sd};   blk=24; chr=24;;
        vnd*) name=vnd; unit=${i#vnd};  blk=19; chr=19;;
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.atari/MAKEDEV
--- a/etc/etc.atari/MAKEDEV     Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.atari/MAKEDEV     Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.38 1999/11/03 14:02:07 leo Exp $
+#      $NetBSD: MAKEDEV,v 1.39 1999/12/18 03:09:46 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -62,7 +62,7 @@
 #      vnd*    "file" pseudo-disks
 #      ccd*    concatenated disk driver
 #      raid*   RAIDframe disk driver
-#      md*     memory pseudo-disk driver
+#      md*     memory pseudo-disk devices
 #      wd*     IDE disks
 #
 # Console ports:
@@ -231,12 +231,14 @@
        esac
        ;;
 
-md*)   # Memory disk, only useful for boot-floppy
-       unit=${i#md}
-       rm -f md${unit}
-       mknod md${unit} b 1 $(($unit * 16))
-       chgrp operator md$unit
-       chmod 640 md$unit
+md*)   # Memory disk
+       unit=${i#md}; blk=1; chr=37;
+       rm -f md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 16))
+       mknod md${unit}c b $blk $((($unit + 16) * 16))
+#      mknod md${unit}  c $chr $((($unit + 16) * 16))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
        ;;
 
 ss*)   # SCSI changer
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.bebox/MAKEDEV
--- a/etc/etc.bebox/MAKEDEV     Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.bebox/MAKEDEV     Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.9 1999/10/18 22:41:25 ad Exp $
+#      $NetBSD: MAKEDEV,v 1.10 1999/12/18 03:09:46 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -47,7 +47,7 @@
 #      sd*     SCSI disks
 #      cd*     SCSI CD-ROM
 #      vnd*    "file" pseudo-disks
-#      md*     memory pseudo-disks
+#      md*     memory pseudo-disk devices
 #      ccd*    contatenated disk devices
 #      raid*   RAIDframe disk devices
 #
@@ -231,18 +231,13 @@
        ;;
 
 md*)
-       case $i in
-       md*) name=md;   unit=${i#md};   chr=24; blk=17;;
-       esac
-       rm -f $name$unit? r$name$unit?
-       mknod ${name}${unit}a   b $blk $(($unit * 8 + 0))
-       mknod ${name}${unit}b   b $blk $(($unit * 8 + 1))
-       mknod ${name}${unit}c   b $blk $(($unit * 8 + 2))
-       mknod r${name}${unit}a  c $chr $(($unit * 8 + 0))
-       mknod r${name}${unit}b  c $chr $(($unit * 8 + 1))
-       mknod r${name}${unit}c  c $chr $(($unit * 8 + 2))
-       chgrp operator $name$unit? r$name$unit?
-       chmod 640 $name$unit? r$name$unit?
+       unit=${i#md}; blk=17; chr=24;
+       rm -f md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 8))
+       mknod md${unit}c b $blk $((($unit + 16) * 8))
+#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
        ;;
 
 ss*)
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.hp300/MAKEDEV
--- a/etc/etc.hp300/MAKEDEV     Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.hp300/MAKEDEV     Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.30 1999/10/18 22:41:26 ad Exp $
+#      $NetBSD: MAKEDEV,v 1.31 1999/12/18 03:09:46 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -51,6 +51,7 @@
 #      st*     Exabyte tape
 # Disks:
 #      ccd*    "concatenated" pseudo-disks
+#      md*     memory pseudo-disk devices
 #      raid*   RAIDframe disk driver
 #      rd*     HP300 HP-IB disks
 #      sd*     HP300 SCSI disks
@@ -180,6 +181,16 @@
        chown root.wheel tun$unit
        ;;
 
+md*)
+       unit=${i#md}; blk=14; chr=32;
+       rm -f md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 8))
+       mknod md${unit}c b $blk $((($unit + 16) * 8))
+#      mknod md${unit}  c $chr $((($unit + 16) * 8))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
+       ;;
+
 ccd*|fd*|raid*|rd*|sd*|vnd*)
        case $i in
        rd*) name=rd; unit=${i#rd}; blk=2; chr=9;;
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.hpcmips/MAKEDEV
--- a/etc/etc.hpcmips/MAKEDEV   Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.hpcmips/MAKEDEV   Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.5 1999/10/18 22:41:26 ad Exp $
+#      $NetBSD: MAKEDEV,v 1.6 1999/12/18 03:09:47 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -45,7 +45,7 @@
 #      sd*     SCSI disks
 #      cd*     SCSI CD-ROM
 #      vnd*    "file" pseudo-disks
-#      md*     memory pseudo-disks
+#      md*     memory pseudo-disk devices
 #      ccd*    contatenated disk devices
 #      raid*   RAIDframe disk devices
 #
@@ -242,19 +242,14 @@
        ;;
 
 md*)
-       case $i in
-       md*) name=md;   unit=${i#md};   chr=12; blk=6;;
-       esac
-       rm -f $name$unit? r$name$unit?
-       mknod ${name}${unit}a   b $blk $(($unit * 8 + 0))
-       mknod ${name}${unit}b   b $blk $(($unit * 8 + 1))
-       mknod ${name}${unit}c   b $blk $(($unit * 8 + 2))
-       mknod r${name}${unit}a  c $chr $(($unit * 8 + 0))
-       mknod r${name}${unit}b  c $chr $(($unit * 8 + 1))
-       mknod r${name}${unit}c  c $chr $(($unit * 8 + 2))
-       chgrp operator $name$unit? r$name$unit?
-       chmod 640 $name$unit? r$name$unit?
-       ;;
+       unit=${i#md}; blk=6; chr=12;
+       rm -f md${unit} md${unit}c rmd${unit}
+       mknod md${unit}  b $blk $((($unit +  0) * 8))
+       mknod md${unit}c b $blk $((($unit + 16) * 8))
+#      mknod rmd${unit} c $chr $((($unit + 16) * 8))
+       chgrp operator md${unit} md${unit}c #rmd${unit}
+       chmod 640 md${unit} md${unit}c #rmd${unit}
+       ;;      
 
 ss*)
        case $i in
diff -r fc6c07ff1c64 -r c9672a189fce etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Sat Dec 18 01:37:00 1999 +0000
+++ b/etc/etc.i386/MAKEDEV      Sat Dec 18 03:09:44 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.97 1999/10/18 22:41:26 ad Exp $



Home | Main Index | Thread Index | Old Index