mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 06:42:45 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64893
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