Skip to content

Commit

Permalink
Add note about login command
Browse files Browse the repository at this point in the history
Add a note about the "login" command which is provided by the cli.sh
script itself at the top when using the help command.
  • Loading branch information
agners committed Nov 22, 2023
1 parent 95aae6b commit fe8d3bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rootfs/usr/bin/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe8d3bd

Please sign in to comment.