Only whack pseudo-terminals into shape if they exist. They might

not yet exist in the DEVFS case.
This commit is contained in:
Sheldon Hearn 2000-08-21 14:37:52 +00:00
parent cbc43d2db3
commit c5fd1a4192
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64893

8
etc/rc
View File

@ -247,9 +247,11 @@ esac
# Whack the pty perms back into shape.
#
chflags 0 /dev/tty[pqrsPQRS]*
chmod 666 /dev/tty[pqrsPQRS]*
chown root:wheel /dev/tty[pqrsPQRS]*
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
# Clean up left-over files
#