# Greeting for FredOS-Rescue: shown on every interactive login, and again # with `menu`. b=$'\e[1m' y=$'\e[1;33m' d=$'\e[2m' r=$'\e[0m' # The console is still littered with boot messages at this point. case "$(tty)" in /dev/tty*) clear ;; esac printf '%s' "$y" cat <<'ART' Fred's ____ _ _ ____ / ___| | __ _ _ _ __| | ___ | _ \ ___ ___ ___ _ _ ___ | | | |/ _` | | | |/ _` |/ _ \ | |_) / _ \/ __|/ __| | | |/ _ \ | |___| | (_| | |_| | (_| | __/ | _ < __/\__ \ (__| |_| | __/ \____|_|\__,_|\__,_|\__,_|\___| |_| \_\___||___/\___|\__,_|\___| ART printf '%s\n' "$r" cat </dev/null | awk '{print $3}' | cut -d/ -f1) if [ -n "$ips" ]; then printf ' %sRemote:%s ssh root@%s\n\n' "$b" "$r" "$(echo $ips | sed 's/ / or root@/g')" else printf ' %sRemote: not online yet; run menu again once connected.%s\n\n' "$d" "$r" fi