NetBSD/etc/rc.d/ttys

33 lines
491 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: ttys,v 1.2 2000/05/13 08:45:10 lukem Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: tty
# REQUIRE: root
. /etc/rc.subr
name="ttyflags"
start_cmd="ttyflags_start"
stop_cmd=":"
ttyflags_start()
{
# set flags on ttys.
# (do early, in case they use tty for SLIP in network)
#
echo "Setting tty flags."
ttyflags -a
# setup ptys
#
# XXX: there may be more ptys than this; maybe use
# sysctl to find out how many?
#
chmod 666 /dev/tty[pqrs]*
}
load_rc_config $name
2000-03-10 14:53:23 +03:00
run_rc_command "$1"