diff --git a/src/PhpSerial.php b/src/PhpSerial.php index 1d253d5..0a6f6ce 100644 --- a/src/PhpSerial.php +++ b/src/PhpSerial.php @@ -47,7 +47,7 @@ public function PhpSerial() if (substr($sysName, 0, 5) === "Linux") { $this->_os = "linux"; - if ($this->_exec("stty") === 0) { + if ($this->_exec("stty --version") === 0) { register_shutdown_function(array($this, "deviceClose")); } else { trigger_error(