diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-08-21 14:37:52 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-08-21 14:37:52 +0000 |
commit | 71be224373cc8ba422b7e8606dea3d70f519114e (patch) | |
tree | 430fb937d5bb538047fabb378e58b0fc12d15ded /etc | |
parent | e0f494ecd432a715523e3cd270b06f01dfd4a760 (diff) | |
download | FreeBSD-src-71be224373cc8ba422b7e8606dea3d70f519114e.zip FreeBSD-src-71be224373cc8ba422b7e8606dea3d70f519114e.tar.gz |
Only whack pseudo-terminals into shape if they exist. They might
not yet exist in the DEVFS case.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 # |