Annotation of src/etc/rc.d/ttys, Revision 1.7
1.1 lukem 1: #!/bin/sh
2: #
1.7 ! apb 3: # $NetBSD: ttys,v 1.6 2004/11/10 05:04:51 christos Exp $
1.1 lukem 4: #
5:
6: # PROVIDE: tty
1.7 ! apb 7: # REQUIRE: root bootconf
1.1 lukem 8:
1.5 mycroft 9: $_rc_subr_loaded . /etc/rc.subr
1.1 lukem 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
1.3 lukem 26: # sysctl kern.maxptys to find out how many?
1.1 lukem 27: #
1.6 christos 28: if [ -c /dev/ttyp0 ]; then
29: chmod 666 /dev/tty[p-uw-zP-T][0-9a-zA-Z]
30: fi
1.3 lukem 31: # only change ttyv* if ttyv0 is not reserved by a console.
32: #
33: if [ -c /dev/ttyv1 ]; then
1.4 lukem 34: chmod 666 /dev/ttyv[0-9a-zA-Z]
1.3 lukem 35: fi
1.1 lukem 36: }
37:
1.2 lukem 38: load_rc_config $name
1.1 lukem 39: run_rc_command "$1"
CVSweb <webmaster@jp.NetBSD.org>