Skip to content

Commit b7c0bf4

Browse files
committed
Fixing stty check for busybox
1 parent f3e6a64 commit b7c0bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSerial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function PhpSerial()
4747
if (substr($sysName, 0, 5) === "Linux") {
4848
$this->_os = "linux";
4949

50-
if ($this->_exec("stty --version") === 0) {
50+
if ($this->_exec("stty") === 0) {
5151
register_shutdown_function(array($this, "deviceClose"));
5252
} else {
5353
trigger_error(

0 commit comments

Comments
 (0)