diff options
-rwxr-xr-x | scripts/runqemu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 69cd44864e..f350021258 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1483,7 +1483,7 @@ to your build configuration. | |||
1483 | # If no serial or serialtcp options were specified, only ttyS0 is created | 1483 | # If no serial or serialtcp options were specified, only ttyS0 is created |
1484 | # and sysvinit shows an error trying to enable ttyS1: | 1484 | # and sysvinit shows an error trying to enable ttyS1: |
1485 | # INIT: Id "S1" respawning too fast: disabled for 5 minutes | 1485 | # INIT: Id "S1" respawning too fast: disabled for 5 minutes |
1486 | serial_num = len(re.findall("-serial", self.qemu_opt)) | 1486 | serial_num = len(re.findall("(^| )-serial ", self.qemu_opt)) |
1487 | 1487 | ||
1488 | # Assume if the user passed serial options, they know what they want | 1488 | # Assume if the user passed serial options, they know what they want |
1489 | # and pad to two devices | 1489 | # and pad to two devices |
@@ -1503,7 +1503,7 @@ to your build configuration. | |||
1503 | 1503 | ||
1504 | self.qemu_opt += " %s" % self.get("QB_SERIAL_OPT") | 1504 | self.qemu_opt += " %s" % self.get("QB_SERIAL_OPT") |
1505 | 1505 | ||
1506 | serial_num = len(re.findall("-serial", self.qemu_opt)) | 1506 | serial_num = len(re.findall("(^| )-serial ", self.qemu_opt)) |
1507 | if serial_num < 2: | 1507 | if serial_num < 2: |
1508 | self.qemu_opt += " -serial null" | 1508 | self.qemu_opt += " -serial null" |
1509 | 1509 | ||