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