if [ -t 1 ] && [ -f /etc/motd ]; then
    cat /etc/motd
fi
