Home | History | Annotate | Line # | Download | only in rc.d
ttys revision 1.1
      1  1.1  lukem #!/bin/sh
      2  1.1  lukem #
      3  1.1  lukem # $NetBSD: ttys,v 1.1 2000/03/10 11:53:24 lukem Exp $
      4  1.1  lukem #
      5  1.1  lukem 
      6  1.1  lukem # PROVIDE: tty
      7  1.1  lukem # REQUIRE: root
      8  1.1  lukem 
      9  1.1  lukem . /etc/rc.subr
     10  1.1  lukem . /etc/rc.conf
     11  1.1  lukem 
     12  1.1  lukem name="ttyflags"
     13  1.1  lukem start_cmd="ttyflags_start"
     14  1.1  lukem stop_cmd=":"
     15  1.1  lukem 
     16  1.1  lukem ttyflags_start()
     17  1.1  lukem {
     18  1.1  lukem 	#	set flags on ttys.
     19  1.1  lukem 	#	(do early, in case they use tty for SLIP in network)
     20  1.1  lukem 	#
     21  1.1  lukem 	echo "Setting tty flags."
     22  1.1  lukem 	ttyflags -a
     23  1.1  lukem 
     24  1.1  lukem 	#	setup ptys
     25  1.1  lukem 	#
     26  1.1  lukem 	#	XXX:	there may be more ptys than this; maybe use
     27  1.1  lukem 	#		sysctl to find out how many?
     28  1.1  lukem 	#
     29  1.1  lukem 	chmod 666 /dev/tty[pqrs]*
     30  1.1  lukem }
     31  1.1  lukem 
     32  1.1  lukem run_rc_command "$1"
     33