Check that serial port ttyS0 exists before running getty on it.