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 #