mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-02 05:33:57 -09:00
When the user selects the shell escape option from the petitboot menu, reset the terminal so output is raw rather than being confined to the ncurses window set up for the petitboot menu, and print some helpful text before running the shell. To do this, override the default HOST_PROG_SH (/bin/sh) with a small script. Doing so also enables someone to customize this behavior by overlaying a different script. Signed-off-by: Reza Arbab <arbab@linux.ibm.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
11 lines
136 B
Bash
11 lines
136 B
Bash
#!/bin/sh
|
|
|
|
reset
|
|
|
|
cat <<EOM
|
|
Exiting petitboot. Type 'exit' to return.
|
|
You may run 'pb-sos' to gather diagnostic data.
|
|
EOM
|
|
|
|
exec /bin/sh
|