diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-08-21 14:37:52 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-08-21 14:37:52 +0000 |
commit | c5fd1a419225fd8b0b2e5a21310e377233253a2c (patch) | |
tree | 573a56b6e934d93c90a778bc6f5568df95e7011c /etc/rc | |
parent | cbc43d2db39c87fe40ac7c1d7baeed1fd6c4da52 (diff) | |
download | src-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/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 # |