summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/ttys
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/ttys')
-rwxr-xr-xetc/rc.d/ttys12
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc.d/ttys b/etc/rc.d/ttys
index 6e12854..59a7b30 100755
--- a/etc/rc.d/ttys
+++ b/etc/rc.d/ttys
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ttys,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $
+# $NetBSD: ttys,v 1.3 2001/04/25 12:59:16 lukem Exp $
#
# PROVIDE: tty
@@ -23,9 +23,15 @@ ttyflags_start()
# 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-zA-Z]
+
+ # only change ttyv* if ttyv0 is not reserved by a console.
+ #
+ if [ -c /dev/ttyv1 ]; then
+ chmod 666 /dev/ttyv[0-9a-zA-Z]
+ fi
}
load_rc_config $name
OpenPOWER on IntegriCloud