Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.i386 Make ulpn device nodes (no reset on open).



details:   https://anonhg.NetBSD.org/src/rev/5a8abb5fc003
branches:  trunk
changeset: 521764:5a8abb5fc003
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Feb 05 00:45:46 2002 +0000

description:
Make ulpn device nodes (no reset on open).

diffstat:

 etc/etc.i386/MAKEDEV |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2f81d15edf15 -r 5a8abb5fc003 etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Tue Feb 05 00:40:16 2002 +0000
+++ b/etc/etc.i386/MAKEDEV      Tue Feb 05 00:45:46 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.164 2002/02/04 08:21:27 lukem Exp $
+#      $NetBSD: MAKEDEV,v 1.165 2002/02/05 00:45:46 augustss Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -278,10 +278,13 @@
 ulpt*)
        unit=${i#ulpt}
        ulpt=ulpt$unit
+       ulpn=ulpn$unit
        major=57
-       rm -f $ulpt
+       rm -f $ulpt $ulpn
        mknod $ulpt c $major $unit
-       chmod 600 $ulpt
+       mknod $ulpn c $major $(($unit + 64))
+       chown root.wheel $ulpt $ulpn
+       chmod 600 $ulpt $ulpn
        ;;
 
 urio*)



Home | Main Index | Thread Index | Old Index