From 385aab4a6b6c1ae2657884ebdec8ace0df4f3b86 Mon Sep 17 00:00:00 2001 From: Root THC Date: Thu, 13 Feb 2025 13:35:49 +0000 Subject: [PATCH] pretty-name --- tools/whatserver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/whatserver.sh b/tools/whatserver.sh index d47cb7c..12a5bd3 100755 --- a/tools/whatserver.sh +++ b/tools/whatserver.sh @@ -271,7 +271,7 @@ unset mem cpu ncpu hostnamectl 2>/dev/null || lsb_release -a 2>/dev/null # || cat /etc/banner 2>/dev/null -source /etc/os-release 2>/dev/null && echo "Pretty Name: ${PRETTY_NAME}" +(source /etc/*release 2>/dev/null; [ -n "$PRETTY_NAME" ] && echo "Pretty Name: ${PRETTY_NAME}") echo "Date : $(date)" command -v uptime >/dev/null && { str=$(uptime | sed -e 's/^[ \t]*//') @@ -409,7 +409,7 @@ else netstat -in 2>/dev/null } echo -e "${CB}>>>>> ARP table${CN}" - { command -v arp >/dev/null && arp -an 2>/dev/null || cat /proc/net/arp; } | COL + { arp -an | grep -iv 'incomplete' || cat /proc/net/arp || ip neigh show | grep -iv 'FAILED'; } 2>/dev/null | COL fi command -v netstat >/dev/null && {