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