#!/bin/bash

# Print the "Welcome to Arista Networks Eos" banner

# This is called from the systemd unit named EosBanner which is one of the
# first to start. It is started very early to be sure that it's going to be
# the first thing printed to the console from EOS.

# This message can't be moved to sysinit.sh because we'd need to enable output
# to the console for that script. Doing so would result in a lot of unwanted
# messages being printed.

echo
if [ -e /etc/Eos-release ]; then
   echo "Welcome to $( cat /etc/Eos-release )"
   echo "Architecture: $( cat /etc/arch )"
else
   echo "WARNING: /etc/Eos-release not found"
fi
