diff --git a/files/os/gmo-cfg.sh b/files/os/gmo-cfg.sh index 83c29f3..ae47ecd 100644 --- a/files/os/gmo-cfg.sh +++ b/files/os/gmo-cfg.sh @@ -17,9 +17,13 @@ alias mv='mv -i' alias ls='ls --color=auto' alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/environment-variables-sudo/ -if [ "$USER" == "gilles" ]; then - hostnamectl -fi +if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then + dist=$(cat /etc/redhat-release) + kern=$(uname -r) + cat << EOF +Distribution: $dist + Kernel: $kern +EOF # execute only if user is gilles or root #if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then # # display proxy status