Add tip(1)'s emulation of cu(1) to tip's manual page.
[dragonfly.git] / etc / rc.d / ttys
1 #!/bin/sh
2 #
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 $
6 #
7
8 # PROVIDE: tty
9 # REQUIRE: root
10 # KEYWORD: DragonFly 
11
12 . /etc/rc.subr
13
14 name="ttyflags"
15 start_cmd="ttyflags_start"
16 stop_cmd=":"
17
18 ttyflags_start()
19 {
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?
23         #
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]*
28         fi
29 }
30
31 load_rc_config $name
32 run_rc_command "$1"