Remove reundant quote.
[netbsd-mini2440.git] / etc / rc.d / ttys
blob4ddaff4a8088a4d4195c62dd196d57a1cfa4c2cc
1 #!/bin/sh
3 # $NetBSD: ttys,v 1.5 2004/08/13 18:08:03 mycroft Exp $
6 # PROVIDE: tty
7 # REQUIRE: root
9 $_rc_subr_loaded . /etc/rc.subr
11 name="ttyflags"
12 start_cmd="ttyflags_start"
13 stop_cmd=":"
15 ttyflags_start()
17 # set flags on ttys.
18 # (do early, in case they use tty for SLIP in network)
20 echo "Setting tty flags."
21 ttyflags -a
23 # setup ptys
25 # XXX: there may be more ptys than this; maybe use
26 # sysctl kern.maxptys to find out how many?
28 if [ -c /dev/ttyp0 ]; then
29 chmod 666 /dev/tty[p-uw-zP-T][0-9a-zA-Z]
31 # only change ttyv* if ttyv0 is not reserved by a console.
33 if [ -c /dev/ttyv1 ]; then
34 chmod 666 /dev/ttyv[0-9a-zA-Z]
38 load_rc_config $name
39 run_rc_command "$1"