change info to display
This commit is contained in:
parent
a373e5cd83
commit
db9ddb634c
@ -31,14 +31,16 @@ alias mv='mv -i'
|
|||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/environment-variables-sudo/
|
alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/environment-variables-sudo/
|
||||||
|
|
||||||
if [ ! is_scp ]; then
|
if ! is_scp; then
|
||||||
if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
|
if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
|
||||||
dist=$(cat /etc/redhat-release)
|
dist=$(cat /etc/redhat-release)
|
||||||
kern=$(uname -r)
|
kern=$(uname -r)
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
-----------------------------------------------------
|
||||||
|
Distribution: Rocky Linux release 9.4 (Blue Onyx
|
||||||
Distribution: $dist
|
Distribution: $dist
|
||||||
Kernel: $kern
|
Kernel: $kern
|
||||||
|
-----------------------------------------------------
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user