Now that devfs is mandatory, there is no need to muck around

with tty/pty permissions.

Noticed by:	brooks
OKed:		phk
This commit is contained in:
Mike Makonnen 2004-02-07 07:10:25 +00:00
parent 9ec5585585
commit a8811e9d1d

View File

@ -1,32 +0,0 @@
#!/bin/sh
#
# $NetBSD: ttys,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $
# $FreeBSD$
#
# PROVIDE: tty
# REQUIRE: root mountcritremote
# BEFORE: SERVERS
# KEYWORD: FreeBSD
. /etc/rc.subr
name="ttyflags"
start_cmd="ttyflags_start"
stop_cmd=":"
ttyflags_start()
{
# Whack the pty perms back into shape.
# XXX: there may be more ptys than this; maybe use
# sysctl to find out how many?
#
if ls /dev/tty[pqrsPQRS]* > /dev/null 2>&1; then
chflags 0 /dev/tty[pqrsPQRS]*
chmod 666 /dev/tty[pqrsPQRS]*
chown root:wheel /dev/tty[pqrsPQRS]*
fi
}
load_rc_config $name
run_rc_command "$1"