add os version

This commit is contained in:
Ruben Blanco 2024-07-16 18:31:24 +02:00
parent ba91f3e521
commit 969942bfd2
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ PACKAGES=$(dpkg -l | tail -n +6 | wc -l)
SHELL=$(dpkg -l | grep bash | head -n 1 | awk '{ print $2 }')
BASH_VERSION_NUMBER=$(echo $BASH_VERSION | cut -c -6)
IP_LIST=$(for i in $(ip a | grep inet | grep -v "::" | awk {'print $2'}); do echo -e "ip -> $i"; done)
OS_VER=$(cat /etc/debian_version)
source /etc/os-release
echo -e "****************************************************************************"
echo -e "${WHITE} _${RESET}"
@ -27,7 +28,7 @@ echo -e "${WHITE} \ V ( (/ /| | ( (_| |${RESET}${GREEN}| | | ( ( | | |_| |_| |
echo -e "${WHITE} \_/ \____)_| \____|${RESET}${GREEN}|_| |_|\_||_|\___)____|_| \_||_|${RESET}"
echo -e ""
echo -e "${RED}Host:${RESET} $HOSTNAME"
echo -e "${RED}OS:${RESET} $PRETTY_NAME"
echo -e "${RED}OS:${RESET} $PRETTY_NAME $OS_VER"
echo -e "${RED}IP:${RESET}\n$IP_LIST"
echo -e "${RED}Kernel:${RESET} $KERNEL"
echo -e "${RED}Packages:${RESET} $PACKAGES"