if [ "$hashostname" -eq 1 ]; then hostname="$(hostname)" elif [ -n "$(cat /etc/hostname)" ]; then hostname="$(cat /etc/hostname)" fi if [ -n "$(whoami)" ]; then username="$(whoami)" fi