From fe8d3bd49a423f94dbfe34982f5049ffff1da825 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 22 Nov 2023 09:54:15 +0100 Subject: [PATCH] Add note about login command Add a note about the "login" command which is provided by the cli.sh script itself at the top when using the help command. --- rootfs/usr/bin/cli.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/bin/cli.sh b/rootfs/usr/bin/cli.sh index fc18176..18b13f0 100755 --- a/rootfs/usr/bin/cli.sh +++ b/rootfs/usr/bin/cli.sh @@ -8,7 +8,9 @@ while true; do COMMAND="$(rlwrap -S $'\e[32mha > \e[0m' -H /tmp/.cli_history -o cat)" # Abort to host? - if [ "$COMMAND" == "login" ]; then + if [ "$COMMAND" == "help" ]; then + echo "Note: Use \"login\" to enter operating system shell" + elif [ "$COMMAND" == "login" ]; then exit 10 elif [ "$COMMAND" == "exit" ]; then exit