vfs/procfs: Add kqueue support
[dragonfly.git] / etc / rc.d / ttys
blob48e70d09ac92c57ab3bc5932e9c2cd44721105c6
1 #!/bin/sh
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 $
7 # PROVIDE: tty
8 # REQUIRE: FILESYSTEMS
9 # BEFORE: NETWORKING
11 . /etc/rc.subr
13 name="ttyflags"
14 start_cmd="ttyflags_start"
15 stop_cmd=":"
17 ttyflags_start()
19 # Whack the pty perms back into shape.
20 # XXX: there may be more ptys than this; maybe use
21 # sysctl to find out how many?
23 if ls /dev/tty[pqrsPQRS]* > /dev/null 2>&1; then
24 chflags 0 /dev/tty[pqrsPQRS]*
25 chmod 666 /dev/tty[pqrsPQRS]*
26 chown root:wheel /dev/tty[pqrsPQRS]*
30 load_rc_config $name
31 run_rc_command "$1"