Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d setup tty[p-uw-zP-T]? (kern.maxpty default = 256) i...
details: https://anonhg.NetBSD.org/src/rev/d1c1a69756e7
branches: trunk
changeset: 509052:d1c1a69756e7
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Apr 25 12:59:16 2001 +0000
description:
setup tty[p-uw-zP-T]? (kern.maxpty default = 256) instead of just tty[p-s]?.
on platforms which don't reserve ttyv? for console on ttyv0, set up ttyv?
diffstat:
etc/rc.d/ttys | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r b01b2fe2c083 -r d1c1a69756e7 etc/rc.d/ttys
--- a/etc/rc.d/ttys Wed Apr 25 12:38:20 2001 +0000
+++ b/etc/rc.d/ttys Wed Apr 25 12:59:16 2001 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ttys,v 1.2 2000/05/13 08:45:10 lukem Exp $
+# $NetBSD: ttys,v 1.3 2001/04/25 12:59:16 lukem Exp $
#
# PROVIDE: tty
@@ -23,9 +23,15 @@
# setup ptys
#
# XXX: there may be more ptys than this; maybe use
- # sysctl to find out how many?
+ # sysctl kern.maxptys to find out how many?
#
- chmod 666 /dev/tty[pqrs]*
+ chmod 666 /dev/tty[p-uw-zP-T][0-9a-f]
+
+ # only change ttyv* if ttyv0 is not reserved by a console.
+ #
+ if [ -c /dev/ttyv1 ]; then
+ chmod 666 /dev/ttyv[0-9a-f]
+ fi
}
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index