Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.x68k Reduce number of ptys for install image.



details:   https://anonhg.NetBSD.org/src/rev/214b46bbb60d
branches:  trunk
changeset: 532810:214b46bbb60d
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Jun 15 11:16:45 2002 +0000

description:
Reduce number of ptys for install image.

diffstat:

 etc/etc.x68k/MAKEDEV |  17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diffs (42 lines):

diff -r e0f91fac1dc5 -r 214b46bbb60d etc/etc.x68k/MAKEDEV
--- a/etc/etc.x68k/MAKEDEV      Sat Jun 15 11:12:28 2002 +0000
+++ b/etc/etc.x68k/MAKEDEV      Sat Jun 15 11:16:45 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.50 2002/06/15 11:12:28 isaki Exp $
+#      $NetBSD: MAKEDEV,v 1.51 2002/06/15 11:16:45 isaki Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -75,7 +75,7 @@
 #
 # Pseudo terminals:
 #      pty*    set of 62 master and slave pseudo terminals
-#      opty    first 16 ptys, to save inodes on install media
+#      opty    minimum set of ptys, to save inodes on install media
 #
 # Printers:
 #      par*    motherboard parallel port
@@ -414,16 +414,13 @@
        ;;
 
 opty)
-       rm -f ttyp[0-3] ptyp[0-3]
-       for j in 0 1 2 3
+       rm -f ttyp[0-1] ptyp[0-1]
+       for j in 0 1
        do
-               case $j in
-               [0-3])  jn=$j ;;
-               esac
-               mknod ttyp$j c 4 $jn
-               mknod ptyp$j c 5 $jn
+               mknod ttyp$j c 4 $j
+               mknod ptyp$j c 5 $j
        done
-       chmod 666 ttyp[0-3] ptyp[0-3]
+       chmod 666 ttyp[0-1] ptyp[0-1]
        ;;
 
                



Home | Main Index | Thread Index | Old Index