aboutsummaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-08-21 14:37:52 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-08-21 14:37:52 +0000
commitc5fd1a419225fd8b0b2e5a21310e377233253a2c (patch)
tree573a56b6e934d93c90a778bc6f5568df95e7011c /etc/rc
parentcbc43d2db39c87fe40ac7c1d7baeed1fd6c4da52 (diff)
downloadsrc-c5fd1a419225fd8b0b2e5a21310e377233253a2c.tar.gz
src-c5fd1a419225fd8b0b2e5a21310e377233253a2c.zip
Only whack pseudo-terminals into shape if they exist. They might
not yet exist in the DEVFS case.
Notes
Notes: svn path=/head/; revision=64893
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index aa373a2f2565..9b5e25f7715a 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
#