3 # $NetBSD: ttys,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/ttys,v 1.3 2002/09/06 16:18:05 gordon Exp $
5 # $DragonFly: src/etc/rc.d/ttys,v 1.3 2004/01/27 00:55:43 rob Exp $
15 start_cmd="ttyflags_start"
20 # Whack the pty perms back into shape.
21 # XXX: there may be more ptys than this; maybe use
22 # sysctl to find out how many?
24 if ls /dev/tty[pqrsPQRS]* > /dev/null 2>&1; then
25 chflags 0 /dev/tty[pqrsPQRS]*
26 chmod 666 /dev/tty[pqrsPQRS]*
27 chown root:wheel /dev/tty[pqrsPQRS]*