Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.newsmips Split fd/* device entry from all target (fo...



details:   https://anonhg.NetBSD.org/src/rev/e9d66364d09e
branches:  trunk
changeset: 503131:e9d66364d09e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Feb 01 05:50:30 2001 +0000

description:
Split fd/* device entry from all target (for install floppy).

diffstat:

 etc/etc.newsmips/MAKEDEV |  22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diffs (53 lines):

diff -r 1086f0c14f0e -r e9d66364d09e etc/etc.newsmips/MAKEDEV
--- a/etc/etc.newsmips/MAKEDEV  Thu Feb 01 04:45:17 2001 +0000
+++ b/etc/etc.newsmips/MAKEDEV  Thu Feb 01 05:50:30 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.12 2000/11/13 19:30:56 tsubai Exp $
+#      $NetBSD: MAKEDEV,v 1.13 2001/02/01 05:50:30 tsutsui Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -75,7 +75,7 @@
 case $i in
 
 all)
-       sh $0 std sd0 sd1 sd2 sd3 cd0 st0 st1
+       sh $0 std fd sd0 sd1 sd2 sd3 cd0 st0 st1
        sh $0 pty0 pty1 pty2 pty3 tty0 tty1
        sh $0 vnd0 vnd1 vnd2 vnd3 ccd0 ccd1 ccd2 ccd3 md0 md1
        sh $0 tun0 tun1 tun2 tun3 raid0 raid1 raid2 raid3
@@ -91,7 +91,7 @@
 
 std)
        rm -f console tty kmem mem null zero drum klog \
-               stdin stdout stderr fd/* fb mouse kbd
+               stdin stdout stderr
        mknod console           c 0 0
        mknod tty               c 2 0   ; chmod 666 tty
        mknod kmem              c 3 1   ; chmod 640 kmem ; chgrp kmem kmem
@@ -103,12 +103,18 @@
        mknod stdin             c 48 0  ; chmod 666 stdin
        mknod stdout            c 48 1  ; chmod 666 stdout
        mknod stderr            c 48 2  ; chmod 666 stderr
+       ;;
+
+fd)
+       rm -f fd/*
        mkdir fd > /dev/null 2>&1
-       (cd fd && eval `echo "" | awk ' BEGIN { \
-               for (i = 0; i < 64; i++) \
-                       printf("mknod %d c 48 %d;", i, i)}'`)
-       chown -R bin.bin fd
-       chmod 555 fd
+       n=0
+       while [ $n -lt 64 ]; do
+               mknod fd/$n c 48 $n
+               n=$(($n + 1))
+       done
+       chown -R root.wheel fd
+       chmod 755 fd
        chmod 666 fd/*
        ;;
 



Home | Main Index | Thread Index | Old Index