21 lines
592 B
Bash
21 lines
592 B
Bash
export PATH="$PATH:/usr/local/bin"
|
|
|
|
menu() {
|
|
if [ -x /usr/local/bin/bee-tui ]; then
|
|
/usr/local/bin/bee-tui "$@"
|
|
else
|
|
echo "bee-tui is not installed"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
# On the local console, keep the shell visible and let the operator
|
|
# start the TUI explicitly. This avoids black-screen failures if the
|
|
# terminal implementation does not support the TUI well.
|
|
if [ -z "${SSH_CONNECTION:-}" ] \
|
|
&& [ -z "${SSH_TTY:-}" ] \
|
|
&& [ "$(tty 2>/dev/null)" = "/dev/tty1" ]; then
|
|
echo "Bee live environment ready."
|
|
echo "Run 'menu' to open the TUI."
|
|
fi
|