7735-AddConfigMotdRole #24
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue