Skip to content

Commit

Permalink
tools: kwboot: unbreak terminal-only mode
Browse files Browse the repository at this point in the history
Commit 84899e2 ("tools/kwboot: Sync with latest barebox version to
support Armada XP") accidently broke the terminal-only mode (-t) by
removing the test on the bootmsg. Thus even when trying to use kwboot
as a plain terminal, it asks to reboot the target.

This commit simply reintroduces the lost test so that it is possible
again to use kwboot to attach to the target system's console.

Signed-off-by: Willy Tarreau <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
  • Loading branch information
wtarreau authored and stroese committed Aug 7, 2018
1 parent a6477f7 commit 3475a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/kwboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ main(int argc, char **argv)
perror("debugmsg");
goto out;
}
} else {
} else if (bootmsg) {
rc = kwboot_bootmsg(tty, bootmsg);
if (rc) {
perror("bootmsg");
Expand Down

0 comments on commit 3475a71

Please sign in to comment.