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