Files
buildroot/package/petitboot/pb-shell
Reza Arbab d5ba2db401 package/petitboot: run script when exiting to shell
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>
2024-07-12 23:59:29 +02:00

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