summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-08-21 14:37:52 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-08-21 14:37:52 +0000
commit71be224373cc8ba422b7e8606dea3d70f519114e (patch)
tree430fb937d5bb538047fabb378e58b0fc12d15ded /etc
parente0f494ecd432a715523e3cd270b06f01dfd4a760 (diff)
downloadFreeBSD-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/rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index aa373a2..9b5e25f 100644
--- a/etc/rc
+++ b/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
#
OpenPOWER on IntegriCloud