Only whack pseudo-terminals into shape if they exist. They might
not yet exist in the DEVFS case.
This commit is contained in:
parent
cbc43d2db3
commit
c5fd1a4192
8
etc/rc
8
etc/rc
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user