Source-Changes-HG archive

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

[src/netbsd-1-4]: src/share/examples/emul/svr4/etc Pull up rev. 1.5; authoriz...



details:   https://anonhg.NetBSD.org/src/rev/8265a1fb013d
branches:  netbsd-1-4
changeset: 468366:8265a1fb013d
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Apr 19 14:57:31 1999 +0000

description:
Pull up rev. 1.5; authorized by cjs.

diffstat:

 share/examples/emul/svr4/etc/SVR4_MAKEDEV |  36 ++++++++++++++++++++++--------
 1 files changed, 26 insertions(+), 10 deletions(-)

diffs (110 lines):

diff -r 0fd09a3056b5 -r 8265a1fb013d share/examples/emul/svr4/etc/SVR4_MAKEDEV
--- a/share/examples/emul/svr4/etc/SVR4_MAKEDEV Mon Apr 19 14:48:27 1999 +0000
+++ b/share/examples/emul/svr4/etc/SVR4_MAKEDEV Mon Apr 19 14:57:31 1999 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: SVR4_MAKEDEV,v 1.3.2.1 1999/04/06 14:38:42 tv Exp $
+#      $NetBSD: SVR4_MAKEDEV,v 1.3.2.2 1999/04/19 14:57:31 kleink Exp $
 #
 # Copyright (c) 1995 Christos Zoulas
 # All rights reserved.
@@ -42,8 +42,18 @@
 #      wabi            Windows emulation; /dev/null for now
 #
 PATH=/sbin:/bin/:/usr/bin:/usr/sbin:/usr/etc
+MACHINE=${MACHINE:-`/usr/bin/uname -m`}
 umask 77
 
+case $MACHINE in
+i386)          major=43;;
+sparc)         major=43;;
+*)
+               echo $MACHINE: unsupported machine >&2
+               exit 1
+               ;;
+esac
+
 for i
 do
 
@@ -59,7 +69,7 @@
 
 ptmx)
        rm -f $i
-       mknod $i                c 43 10
+       mknod $i                c $major 10
        chown bin.bin $i
        chmod 666 $i
        ;;
@@ -88,7 +98,7 @@
 
 tcp)
        rm -f $i
-       mknod $i                c 43 35
+       mknod $i                c $major 35
        chown bin.bin $i
        chmod 666 $i
        ;;
@@ -96,35 +106,35 @@
 
 udp)
        rm -f $i
-       mknod $i                c 43 36
+       mknod $i                c $major 36
        chown bin.bin $i
        chmod 666 $i
        ;;
 
 rawip)
        rm -f $i
-       mknod $i                c 43 37
+       mknod $i                c $major 37
        chown bin.bin $i
        chmod 666 $i
        ;;
 
 ticlts)
        rm -f $i
-       mknod $i                c 43 38
+       mknod $i                c $major 38
        chown bin.bin $i
        chmod 666 $i
        ;;
 
 ticotsord)
        rm -f $i
-       mknod $i                c 43 39
+       mknod $i                c $major 39
        chown bin.bin $i
        chmod 666 $i
        ;;
 
 ticots)
        rm -f $i
-       mknod $i                c 43 40
+       mknod $i                c $major 40
        chown bin.bin $i
        chmod 666 $i
        ;;
@@ -132,13 +142,19 @@
 
 wabi)
        rm -f $i
-       mknod $i                c 3 2   # /dev/null
+       case $MACHINE in
+       sparc)
+               mknod $i        c 3 2;; # /dev/null
+       i386)
+               mknod $i        c 2 2;; # /dev/null
+       esac
        chown bin.bin $i
        chmod 666 $i
        ;;
 
 *)
-       echo $i: unknown device
+       echo $i: unknown device 2>&1
+       exit 1
        ;;
 esac
 done



Home | Main Index | Thread Index | Old Index